mirror of
https://github.com/moby/moby.git
synced 2026-07-25 00:37:00 +00:00
vendor: update buildkit to v0.23.2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@@ -62,7 +62,7 @@ require (
|
||||
github.com/miekg/dns v1.1.66
|
||||
github.com/mistifyio/go-zfs/v3 v3.0.1
|
||||
github.com/mitchellh/copystructure v1.2.0
|
||||
github.com/moby/buildkit v0.23.1
|
||||
github.com/moby/buildkit v0.23.2
|
||||
github.com/moby/docker-image-spec v1.3.1
|
||||
github.com/moby/go-archive v0.1.0
|
||||
github.com/moby/ipvs v1.1.0
|
||||
@@ -209,7 +209,7 @@ require (
|
||||
github.com/tinylib/msgp v1.1.8 // indirect
|
||||
github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323 // indirect
|
||||
github.com/tonistiigi/fsutil v0.0.0-20250605211040-586307ad452f // indirect
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20250611155157-388a2ec8cdf8 // indirect
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20250626083717-378c5ed1ddd9 // indirect
|
||||
github.com/tonistiigi/go-csvvalue v0.0.0-20240814133006-030d3b2625d0 // indirect
|
||||
github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea // indirect
|
||||
github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab // indirect
|
||||
|
||||
@@ -384,8 +384,8 @@ github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:F
|
||||
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
|
||||
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
|
||||
github.com/mndrix/tap-go v0.0.0-20171203230836-629fa407e90b/go.mod h1:pzzDgJWZ34fGzaAZGFW22KVZDfyrYW+QABMrWnJBnSs=
|
||||
github.com/moby/buildkit v0.23.1 h1:CZtFmPRF+IFG1C8QfPnktGO1Dzzt5JSwtQ5eDqIh+ag=
|
||||
github.com/moby/buildkit v0.23.1/go.mod h1:keNXljNmKX1T0AtM0bMObc8OV6mA9cOuquVbPcRpU/Y=
|
||||
github.com/moby/buildkit v0.23.2 h1:gt/dkfcpgTXKx+B9I310kV767hhVqTvEyxGgI3mqsGQ=
|
||||
github.com/moby/buildkit v0.23.2/go.mod h1:iEjAfPQKIuO+8y6OcInInvzqTMiKMbb2RdJz1K/95a0=
|
||||
github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0=
|
||||
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
|
||||
github.com/moby/go-archive v0.1.0 h1:Kk/5rdW/g+H8NHdJW2gsXyZ7UnzvJNOy6VKJqueWdcQ=
|
||||
@@ -559,8 +559,8 @@ github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323 h1:r0p7fK5
|
||||
github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323/go.mod h1:3Iuxbr0P7D3zUzBMAZB+ois3h/et0shEz0qApgHYGpY=
|
||||
github.com/tonistiigi/fsutil v0.0.0-20250605211040-586307ad452f h1:MoxeMfHAe5Qj/ySSBfL8A7l1V+hxuluj8owsIEEZipI=
|
||||
github.com/tonistiigi/fsutil v0.0.0-20250605211040-586307ad452f/go.mod h1:BKdcez7BiVtBvIcef90ZPc6ebqIWr4JWD7+EvLm6J98=
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20250611155157-388a2ec8cdf8 h1:KbACff2cR+ip6/Kmt8zCzieMlKYyypArQT1ZweFxewQ=
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20250611155157-388a2ec8cdf8/go.mod h1:gJlfrsY8U+1n9RGKSgWryNFfzHRl/b1a99RUVL1L4Qw=
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20250626083717-378c5ed1ddd9 h1:GWuTlpuUQBaK6u0R3HwE+eWaQ2aXwHgo8CaXgqtDQZU=
|
||||
github.com/tonistiigi/go-actions-cache v0.0.0-20250626083717-378c5ed1ddd9/go.mod h1:cD0SB2270BYw6HYKriFn4H6NRLhGj6ytf48YTpsm8LY=
|
||||
github.com/tonistiigi/go-archvariant v1.0.0 h1:5LC1eDWiBNflnTF1prCiX09yfNHIxDC/aukdhCdTyb0=
|
||||
github.com/tonistiigi/go-archvariant v1.0.0/go.mod h1:TxFmO5VS6vMq2kvs3ht04iPXtu2rUT/erOnGFYfk5Ho=
|
||||
github.com/tonistiigi/go-csvvalue v0.0.0-20240814133006-030d3b2625d0 h1:2f304B10LaZdB8kkVEaoXvAMVan2tl9AiK4G0odjQtE=
|
||||
|
||||
4
vendor/github.com/moby/buildkit/exporter/local/fs.go
generated
vendored
4
vendor/github.com/moby/buildkit/exporter/local/fs.go
generated
vendored
@@ -180,7 +180,7 @@ func CreateFS(ctx context.Context, sessionID string, k string, ref cache.Immutab
|
||||
return nil, nil, err
|
||||
}
|
||||
stmtFS := staticfs.NewFS()
|
||||
split := opt.UsePlatformSplit(isMap)
|
||||
addPlatformToFilename := isMap && !opt.UsePlatformSplit(isMap)
|
||||
|
||||
names := map[string]struct{}{}
|
||||
for i, stmt := range stmts {
|
||||
@@ -190,7 +190,7 @@ func CreateFS(ctx context.Context, sessionID string, k string, ref cache.Immutab
|
||||
}
|
||||
|
||||
name := opt.AttestationPrefix + path.Base(attestations[i].Path)
|
||||
if !split {
|
||||
if addPlatformToFilename {
|
||||
nameExt := path.Ext(name)
|
||||
namBase := strings.TrimSuffix(name, nameExt)
|
||||
name = fmt.Sprintf("%s.%s%s", namBase, strings.ReplaceAll(k, "/", "_"), nameExt)
|
||||
|
||||
1
vendor/github.com/tonistiigi/go-actions-cache/cache.go
generated
vendored
1
vendor/github.com/tonistiigi/go-actions-cache/cache.go
generated
vendored
@@ -593,6 +593,7 @@ type Entry struct {
|
||||
IsAzureBlob bool `json:"isAzureBlob"`
|
||||
|
||||
client *http.Client
|
||||
reload func(context.Context) error
|
||||
}
|
||||
|
||||
func (ce *Entry) WriteTo(ctx context.Context, w io.Writer) error {
|
||||
|
||||
47
vendor/github.com/tonistiigi/go-actions-cache/cache_v2.go
generated
vendored
47
vendor/github.com/tonistiigi/go-actions-cache/cache_v2.go
generated
vendored
@@ -5,6 +5,7 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"io"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -76,17 +77,34 @@ func (c *Cache) uploadV2(ctx context.Context, url string, b Blob) error {
|
||||
|
||||
func (ce *Entry) downloadV2(ctx context.Context) ReaderAtCloser {
|
||||
return toReaderAtCloser(func(offset int64) (io.ReadCloser, error) {
|
||||
client, err := blockblob.NewClientWithNoCredential(ce.URL, azureOptions)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
var retried bool
|
||||
for {
|
||||
client, err := blockblob.NewClientWithNoCredential(ce.URL, azureOptions)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
resp, err := client.DownloadStream(ctx, &blob.DownloadStreamOptions{
|
||||
Range: blob.HTTPRange{Offset: offset},
|
||||
})
|
||||
if err != nil {
|
||||
if !retried {
|
||||
// the URL might have expired, so we try to load it again
|
||||
retried = true
|
||||
var respErr *azcore.ResponseError
|
||||
if errors.As(err, &respErr) {
|
||||
if respErr.StatusCode == http.StatusForbidden || respErr.StatusCode == http.StatusUnauthorized {
|
||||
Log("reload download URL because error %v", err)
|
||||
if err := ce.reload(ctx); err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
continue // retry with the new URL
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
return resp.Body, nil
|
||||
}
|
||||
resp, err := client.DownloadStream(ctx, &blob.DownloadStreamOptions{
|
||||
Range: blob.HTTPRange{Offset: offset},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
return resp.Body, nil
|
||||
})
|
||||
}
|
||||
|
||||
@@ -187,6 +205,15 @@ func (c *Cache) loadV2(ctx context.Context, keys ...string) (*Entry, error) {
|
||||
ce.URL = val.SignedDownloadURL
|
||||
ce.IsAzureBlob = true
|
||||
ce.client = c.opt.Client
|
||||
ce.reload = func(ctx context.Context) error {
|
||||
v, err := c.loadV2(ctx, keys...)
|
||||
if err != nil {
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
ce.URL = v.URL
|
||||
ce.Key = v.Key
|
||||
return nil
|
||||
}
|
||||
|
||||
return &ce, nil
|
||||
}
|
||||
|
||||
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
@@ -757,7 +757,7 @@ github.com/mitchellh/hashstructure/v2
|
||||
# github.com/mitchellh/reflectwalk v1.0.2
|
||||
## explicit
|
||||
github.com/mitchellh/reflectwalk
|
||||
# github.com/moby/buildkit v0.23.1
|
||||
# github.com/moby/buildkit v0.23.2
|
||||
## explicit; go 1.23.0
|
||||
github.com/moby/buildkit/api/services/control
|
||||
github.com/moby/buildkit/api/types
|
||||
@@ -1190,7 +1190,7 @@ github.com/tonistiigi/dchapes-mode
|
||||
github.com/tonistiigi/fsutil
|
||||
github.com/tonistiigi/fsutil/copy
|
||||
github.com/tonistiigi/fsutil/types
|
||||
# github.com/tonistiigi/go-actions-cache v0.0.0-20250611155157-388a2ec8cdf8
|
||||
# github.com/tonistiigi/go-actions-cache v0.0.0-20250626083717-378c5ed1ddd9
|
||||
## explicit; go 1.23.0
|
||||
github.com/tonistiigi/go-actions-cache
|
||||
# github.com/tonistiigi/go-archvariant v1.0.0
|
||||
|
||||
Reference in New Issue
Block a user