Skip to content

Commit ef4e9fe

Browse files
authored
Merge pull request #2992 from crazy-max/docker-28
vendor: docker, docker/cli v28.0.0-rc.1
2 parents ef73c64 + 2dc0350 commit ef4e9fe

File tree

207 files changed

+3239
-3443
lines changed

Some content is hidden

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

207 files changed

+3239
-3443
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{} {

driver/docker-container/driver.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ func (d *Driver) create(ctx context.Context, l progress.SubLogger) error {
106106
}); err != nil {
107107
// image pulling failed, check if it exists in local image store.
108108
// if not, return pulling error. otherwise log it.
109-
_, _, errInspect := d.DockerAPI.ImageInspectWithRaw(ctx, imageName)
110-
if errInspect != nil {
109+
_, errInspect := d.DockerAPI.ImageInspect(ctx, imageName)
110+
found := errInspect == nil
111+
if !found {
111112
return err
112113
}
113114
l.Wrap("pulling failed, using local image "+imageName, func() error { return nil })

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ require (
1717
github.com/creack/pty v1.1.24
1818
github.com/davecgh/go-spew v1.1.1
1919
github.com/distribution/reference v0.6.0
20-
github.com/docker/cli v27.5.1+incompatible
20+
github.com/docker/cli v28.0.0-rc.1+incompatible
2121
github.com/docker/cli-docs-tool v0.9.0
22-
github.com/docker/docker v27.5.1+incompatible
22+
github.com/docker/docker v28.0.0-rc.1+incompatible
2323
github.com/docker/go-units v0.5.0
2424
github.com/gofrs/flock v0.12.1
2525
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
122122
github.com/denisenkom/go-mssqldb v0.0.0-20191128021309-1d7a30a10f73/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
123123
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
124124
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
125-
github.com/docker/cli v27.5.1+incompatible h1:JB9cieUT9YNiMITtIsguaN55PLOHhBSz3LKVc6cqWaY=
126-
github.com/docker/cli v27.5.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
125+
github.com/docker/cli v28.0.0-rc.1+incompatible h1:4Xkn+JKnvVqDfyL/pZCWaPM9jzPtAJvNu7qKBkotv3I=
126+
github.com/docker/cli v28.0.0-rc.1+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
127127
github.com/docker/cli-docs-tool v0.9.0 h1:CVwQbE+ZziwlPqrJ7LRyUF6GvCA+6gj7MTCsayaK9t0=
128128
github.com/docker/cli-docs-tool v0.9.0/go.mod h1:ClrwlNW+UioiRyH9GiAOe1o3J/TsY3Tr1ipoypjAUtc=
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 v28.0.0-rc.1+incompatible h1:xUbdsVxJIFvyZ+958MzyyIT7VuHO4Ecao9hKhl7kGUc=
133+
github.com/docker/docker v28.0.0-rc.1+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/cli/cli-plugins/hooks/printer.go

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

vendor/github.com/docker/cli/cli-plugins/manager/cobra.go

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

vendor/github.com/docker/cli/cli-plugins/plugin/plugin.go

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

0 commit comments

Comments
 (0)