Skip to content

Commit 4d09d8c

Browse files
authored
Merge pull request moby#51756 from tonistiigi/20251217-update-buildkit
vendor: update buildkit to d1e5d1a8f771 (master / v0.27.0-dev)
2 parents 28c9d26 + f005e1c commit 4d09d8c

File tree

33 files changed

+423
-313
lines changed

33 files changed

+423
-313
lines changed

daemon/internal/builder-next/adapters/containerimage/pull.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (is *Source) resolveRemote(ctx context.Context, ref string, platform *ocisp
180180
// key is used to synchronize resolutions that can happen in parallel when doing multi-stage.
181181
key := "getconfig::" + ref + "::" + platforms.FormatAll(p)
182182
res, err := is.g.Do(ctx, key, func(ctx context.Context) (*resolveRemoteResult, error) {
183-
res := resolver.DefaultPool.GetResolver(is.RegistryHosts, ref, "pull", sm, g)
183+
res := resolver.DefaultPool.GetResolver(is.RegistryHosts, ref, resolver.ScopeType{}, sm, g)
184184
dgst, dt, err := imageutil.Config(ctx, ref, res, is.ContentStore, is.LeaseManager, platform)
185185
if err != nil {
186186
return nil, err
@@ -285,7 +285,7 @@ type puller struct {
285285
}
286286

287287
func (p *puller) resolver(g session.Group) remotes.Resolver {
288-
return resolver.DefaultPool.GetResolver(p.is.RegistryHosts, p.src.Reference.String(), "pull", p.sm, g)
288+
return resolver.DefaultPool.GetResolver(p.is.RegistryHosts, p.src.Reference.String(), resolver.ScopeType{}, p.sm, g)
289289
}
290290

291291
func (p *puller) mainManifestKey(platform ocispec.Platform) (digest.Digest, error) {

daemon/internal/builder-next/exporter/mobyexporter/export.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func (e *imageExporterInstance) Attrs() map[string]string {
105105
return e.attrs
106106
}
107107

108-
func (e *imageExporterInstance) Export(ctx context.Context, inp *exporter.Source, inlineCache exptypes.InlineCache, sessionID string) (map[string]string, exporter.DescriptorReference, error) {
108+
func (e *imageExporterInstance) Export(ctx context.Context, inp *exporter.Source, buildInfo exporter.ExportBuildInfo) (map[string]string, exporter.DescriptorReference, error) {
109109
if len(inp.Refs) > 1 {
110110
return nil, nil, errors.New("exporting multiple references to image store is currently unsupported")
111111
}
@@ -173,8 +173,8 @@ func (e *imageExporterInstance) Export(ctx context.Context, inp *exporter.Source
173173
diffs, history = normalizeLayersAndHistory(diffs, history, ref)
174174

175175
var inlineCacheEntry *exptypes.InlineCacheEntry
176-
if inlineCache != nil {
177-
inlineCacheResult, err := inlineCache(ctx)
176+
if buildInfo.InlineCache != nil {
177+
inlineCacheResult, err := buildInfo.InlineCache(ctx)
178178
if err != nil {
179179
return nil, nil, err
180180
}

daemon/internal/builder-next/exporter/wrapper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ type imageExporterInstanceWrapper struct {
7373
callbacks BuildkitCallbacks
7474
}
7575

76-
func (i *imageExporterInstanceWrapper) Export(ctx context.Context, src *exporter.Source, inlineCache exptypes.InlineCache, sessionID string) (map[string]string, exporter.DescriptorReference, error) {
77-
out, ref, err := i.ExporterInstance.Export(ctx, src, inlineCache, sessionID)
76+
func (i *imageExporterInstanceWrapper) Export(ctx context.Context, src *exporter.Source, buildInfo exporter.ExportBuildInfo) (map[string]string, exporter.DescriptorReference, error) {
77+
out, ref, err := i.ExporterInstance.Export(ctx, src, buildInfo)
7878
if err != nil {
7979
return out, ref, err
8080
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ require (
5757
github.com/miekg/dns v1.1.66
5858
github.com/mistifyio/go-zfs/v3 v3.1.0
5959
github.com/mitchellh/copystructure v1.2.0
60-
github.com/moby/buildkit v0.26.3
60+
github.com/moby/buildkit v0.26.1-0.20251218124449-d1e5d1a8f771 // master (v0.27.0-dev)
6161
github.com/moby/docker-image-spec v1.3.1
6262
github.com/moby/go-archive v0.2.0
6363
github.com/moby/ipvs v1.1.0

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi
193193
github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE=
194194
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
195195
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
196-
github.com/docker/cli v28.5.0+incompatible h1:crVqLrtKsrhC9c00ythRx435H8LiQnUKRtJLRR+Auxk=
197-
github.com/docker/cli v28.5.0+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
196+
github.com/docker/cli v29.1.3+incompatible h1:+kz9uDWgs+mAaIZojWfFt4d53/jv0ZUOOoSh5ZnH36c=
197+
github.com/docker/cli v29.1.3+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
198198
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
199199
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
200-
github.com/docker/docker-credential-helpers v0.9.3 h1:gAm/VtF9wgqJMoxzT3Gj5p4AqIjCBS4wrsOh9yRqcz8=
201-
github.com/docker/docker-credential-helpers v0.9.3/go.mod h1:x+4Gbw9aGmChi3qTLZj8Dfn0TD20M/fuWy0E5+WDeCo=
200+
github.com/docker/docker-credential-helpers v0.9.4 h1:76ItO69/AP/V4yT9V4uuuItG0B1N8hvt0T0c0NN/DzI=
201+
github.com/docker/docker-credential-helpers v0.9.4/go.mod h1:v1S+hepowrQXITkEfw6o4+BMbGot02wiKpzWhGUZK6c=
202202
github.com/docker/go-connections v0.6.0 h1:LlMG9azAe1TqfR7sO+NJttz1gy6KO7VJBh+pMmjSD94=
203203
github.com/docker/go-connections v0.6.0/go.mod h1:AahvXYshr6JgfUJGdDCs2b5EZG/vmaMAntpSFH5BFKE=
204204
github.com/docker/go-events v0.0.0-20250808211157-605354379745 h1:yOn6Ze6IbYI/KAw2lw/83ELYvZh6hvsygTVkD0dzMC4=
@@ -421,8 +421,8 @@ github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:F
421421
github.com/mitchellh/mapstructure v0.0.0-20170523030023-d0303fe80992/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
422422
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
423423
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
424-
github.com/moby/buildkit v0.26.3 h1:D+ruZVAk/3ipRq5XRxBH9/DIFpRjSlTtMbghT5gQP9g=
425-
github.com/moby/buildkit v0.26.3/go.mod h1:4T4wJzQS4kYWIfFRjsbJry4QoxDBjK+UGOEOs1izL7w=
424+
github.com/moby/buildkit v0.26.1-0.20251218124449-d1e5d1a8f771 h1:BNIY3TsrFi4yy7OdDYQDxP0fKYmONsqRKOwen/Kj7OA=
425+
github.com/moby/buildkit v0.26.1-0.20251218124449-d1e5d1a8f771/go.mod h1:r1llj81TIA7dIIr6NEMX70Ie630lPVU1FlwSaG6oHkQ=
426426
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
427427
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
428428
github.com/moby/go-archive v0.2.0 h1:zg5QDUM2mi0JIM9fdQZWC7U8+2ZfixfTYoHL7rWUcP8=

vendor/github.com/moby/buildkit/cache/remotecache/registry/registry.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/buildkit/client/solve.go

Lines changed: 27 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/buildkit/exporter/containerimage/export.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/buildkit/exporter/exporter.go

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/moby/buildkit/exporter/local/export.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)