Skip to content

Commit 4df0b11

Browse files
committed
vendor: moby master
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 411bbd6 commit 4df0b11

File tree

181 files changed

+2908
-3084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+2908
-3084
lines changed

build/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ func remoteDigestWithMoby(ctx context.Context, d *driver.DriverHandle, name stri
835835
if err != nil {
836836
return "", err
837837
}
838-
img, _, err := api.ImageInspectWithRaw(ctx, name)
838+
img, err := api.ImageInspect(ctx, name)
839839
if err != nil {
840840
return "", err
841841
}

commands/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import (
4141
"github.com/docker/cli/cli/command"
4242
dockeropts "github.com/docker/cli/opts"
4343
"github.com/docker/docker/api/types/versions"
44-
"github.com/docker/docker/pkg/ioutils"
44+
"github.com/docker/docker/pkg/atomicwriter"
4545
"github.com/moby/buildkit/client"
4646
"github.com/moby/buildkit/exporter/containerimage/exptypes"
4747
"github.com/moby/buildkit/frontend/subrequests"
@@ -745,7 +745,7 @@ func writeMetadataFile(filename string, dt interface{}) error {
745745
if err != nil {
746746
return err
747747
}
748-
return ioutils.AtomicWriteFile(filename, b, 0644)
748+
return atomicwriter.WriteFile(filename, b, 0644)
749749
}
750750

751751
func decodeExporterResponse(exporterResponse map[string]string) map[string]interface{} {

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ go 1.23.0
55
// https://github.com/moby/buildkit/pull/5602 (bump_engine branch)
66
replace github.com/moby/buildkit => github.com/thaJeztah/buildkit v0.0.0-20250206183113-363969a3f071
77

8+
// FIXME(thaJeztah): testing moby master
9+
replace github.com/docker/docker => github.com/docker/docker v27.0.2-0.20250206180949-6c3797923dcb+incompatible // master (v-next)
10+
811
require (
912
github.com/Masterminds/semver/v3 v3.2.1
1013
github.com/Microsoft/go-winio v0.6.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ github.com/docker/cli-docs-tool v0.9.0/go.mod h1:ClrwlNW+UioiRyH9GiAOe1o3J/TsY3T
129129
github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
130130
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
131131
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
132-
github.com/docker/docker v27.5.1+incompatible h1:4PYU5dnBYqRQi0294d1FBECqT9ECWeQAIfE8q4YnPY8=
133-
github.com/docker/docker v27.5.1+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
132+
github.com/docker/docker v27.0.2-0.20250206180949-6c3797923dcb+incompatible h1:R6uFQLKwpUW5K3rRtO6PZ5Bhx4CsuiBla2lV+bZQT+Y=
133+
github.com/docker/docker v27.0.2-0.20250206180949-6c3797923dcb+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
134134
github.com/docker/docker-credential-helpers v0.8.2 h1:bX3YxiGzFP5sOXWc3bTPEXdEaZSeVMrFgOr3T+zrFAo=
135135
github.com/docker/docker-credential-helpers v0.8.2/go.mod h1:P3ci7E3lwkZg6XiHdRKft1KckHiO9a2rNtyFbZ/ry9M=
136136
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c h1:lzqkGL9b3znc+ZUgi7FlLnqjQhcXxkNM/quxIjBVMD0=

util/confutil/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync"
99

1010
"github.com/docker/cli/cli/command"
11-
"github.com/docker/docker/pkg/ioutils"
11+
"github.com/docker/docker/pkg/atomicwriter"
1212
"github.com/moby/buildkit/cmd/buildkitd/config"
1313
"github.com/pelletier/go-toml"
1414
"github.com/pkg/errors"
@@ -106,7 +106,7 @@ func (c *Config) MkdirAll(dir string, perm os.FileMode) error {
106106
// AtomicWriteFile writes data to a file within the config dir atomically
107107
func (c *Config) AtomicWriteFile(filename string, data []byte, perm os.FileMode) error {
108108
f := filepath.Join(c.dir, filename)
109-
if err := ioutils.AtomicWriteFile(f, data, perm); err != nil {
109+
if err := atomicwriter.WriteFile(f, data, perm); err != nil {
110110
return err
111111
}
112112
if c.chowner == nil {

util/dockerutil/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77

88
"github.com/docker/buildx/util/progress"
99
"github.com/docker/cli/cli/command"
10+
"github.com/docker/docker/api/types/image"
1011
dockerclient "github.com/docker/docker/client"
1112
)
1213

@@ -52,7 +53,7 @@ func (c *Client) LoadImage(ctx context.Context, name string, status progress.Wri
5253
w.mu.Unlock()
5354
}
5455

55-
resp, err := dapi.ImageLoad(ctx, pr, false)
56+
resp, err := dapi.ImageLoad(ctx, pr, image.LoadOptions{})
5657
defer close(done)
5758
if err != nil {
5859
handleErr(err)

vendor/github.com/docker/docker/api/common.go

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

0 commit comments

Comments
 (0)