Merge pull request #41185 from thaJeztah/19.03_bump_buildkit
[19.03] vendor: buildkit dc6afa0f755f6cbb7e85f0df4ff4b87ec280cb32 (v0.6.4-15-gdc6afa0f)
This commit is contained in:
commit
0eaa22b95d
2 changed files with 7 additions and 4 deletions
|
@ -26,7 +26,7 @@ github.com/imdario/mergo 7c29201646fa3de8506f70121347
|
|||
golang.org/x/sync e225da77a7e68af35c70ccbf71af2b83e6acac3c
|
||||
|
||||
# buildkit
|
||||
github.com/moby/buildkit a7d7b7f1e6bfc102810079f13212de6a869c494b # v0.6.4-11-ga7d7b7f1
|
||||
github.com/moby/buildkit dc6afa0f755f6cbb7e85f0df4ff4b87ec280cb32 # v0.6.4-15-gdc6afa0f
|
||||
github.com/tonistiigi/fsutil 6c909ab392c173a4264ae1bfcbc0450b9aac0c7d
|
||||
github.com/grpc-ecosystem/grpc-opentracing 8e809c8a86450a29b90dcc9efbf062d0fe6d9746
|
||||
github.com/opentracing/opentracing-go 1361b9cd60be79c4c3a7fa9841b3c132e40066a7
|
||||
|
|
9
vendor/github.com/moby/buildkit/solver/exporter.go
generated
vendored
9
vendor/github.com/moby/buildkit/solver/exporter.go
generated
vendored
|
@ -20,11 +20,12 @@ func addBacklinks(t CacheExporterTarget, rec CacheExporterRecord, cm *cacheManag
|
|||
if rec == nil {
|
||||
var ok bool
|
||||
rec, ok = bkm[id]
|
||||
if ok {
|
||||
if ok && rec != nil {
|
||||
return rec, nil
|
||||
}
|
||||
_ = ok
|
||||
}
|
||||
bkm[id] = nil
|
||||
if err := cm.backend.WalkBacklinks(id, func(id string, link CacheInfoLink) error {
|
||||
if rec == nil {
|
||||
rec = t.Add(link.Digest)
|
||||
|
@ -37,7 +38,9 @@ func addBacklinks(t CacheExporterTarget, rec CacheExporterRecord, cm *cacheManag
|
|||
return err
|
||||
}
|
||||
}
|
||||
rec.LinkFrom(r, int(link.Input), link.Selector.String())
|
||||
if r != nil {
|
||||
rec.LinkFrom(r, int(link.Input), link.Selector.String())
|
||||
}
|
||||
return nil
|
||||
}); err != nil {
|
||||
return nil, err
|
||||
|
@ -66,6 +69,7 @@ func (e *exporter) ExportTo(ctx context.Context, t CacheExporterTarget, opt Cach
|
|||
if t.Visited(e) {
|
||||
return e.res, nil
|
||||
}
|
||||
t.Visit(e)
|
||||
|
||||
deps := e.k.Deps()
|
||||
|
||||
|
@ -177,7 +181,6 @@ func (e *exporter) ExportTo(ctx context.Context, t CacheExporterTarget, opt Cach
|
|||
}
|
||||
|
||||
e.res = allRec
|
||||
t.Visit(e)
|
||||
|
||||
return e.res, nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue