Skip to content

Commit 805d8c7

Browse files
committed
vendor: github.com/moby/moby/api, moby/moby/client master
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 606f1c6 commit 805d8c7

File tree

7 files changed

+65
-87
lines changed

7 files changed

+65
-87
lines changed

cli/command/cli.go

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -377,24 +377,21 @@ func (cli *DockerCli) initializeFromClient() {
377377
ctx, cancel := context.WithTimeout(cli.baseCtx, cli.getInitTimeout())
378378
defer cancel()
379379

380-
ping, err := cli.client.Ping(ctx, client.PingOptions{})
380+
ping, err := cli.client.Ping(ctx, client.PingOptions{
381+
NegotiateAPIVersion: true,
382+
ForceNegotiate: true,
383+
})
381384
if err != nil {
382385
// Default to true if we fail to connect to daemon
383386
cli.serverInfo = ServerInfo{HasExperimental: true}
384-
385-
if ping.APIVersion != "" {
386-
cli.client.NegotiateAPIVersionPing(ping)
387-
}
388387
return
389388
}
390-
391389
cli.serverInfo = ServerInfo{
392390
HasExperimental: ping.Experimental,
393391
OSType: ping.OSType,
394392
BuildkitVersion: ping.BuilderVersion,
395393
SwarmStatus: ping.SwarmStatus,
396394
}
397-
cli.client.NegotiateAPIVersionPing(ping)
398395
}
399396

400397
// ContextStore returns the ContextStore

vendor.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ require (
2828
github.com/google/uuid v1.6.0
2929
github.com/mattn/go-runewidth v0.0.17
3030
github.com/moby/go-archive v0.1.0
31-
github.com/moby/moby/api v1.52.0-beta.2.0.20251028144225-90109a373da9 // master
32-
github.com/moby/moby/client v0.1.0-beta.2.0.20251028144225-90109a373da9 // master
31+
github.com/moby/moby/api v1.52.0-beta.2.0.20251028190856-e95f6c81912a // master
32+
github.com/moby/moby/client v0.1.0-beta.2.0.20251028190856-e95f6c81912a // master
3333
github.com/moby/patternmatcher v0.6.0
3434
github.com/moby/swarmkit/v2 v2.1.0
3535
github.com/moby/sys/atomicwriter v0.1.0

vendor.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,10 @@ github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3N
170170
github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo=
171171
github.com/moby/go-archive v0.1.0 h1:Kk/5rdW/g+H8NHdJW2gsXyZ7UnzvJNOy6VKJqueWdcQ=
172172
github.com/moby/go-archive v0.1.0/go.mod h1:G9B+YoujNohJmrIYFBpSd54GTUB4lt9S+xVQvsJyFuo=
173-
github.com/moby/moby/api v1.52.0-beta.2.0.20251028144225-90109a373da9 h1:DDumCtiHK751YhrY/tbUdMo5BN8dRarxbW4ScVh/KZg=
174-
github.com/moby/moby/api v1.52.0-beta.2.0.20251028144225-90109a373da9/go.mod h1:v0K/motq8oWmx+rtApG1rBTIpQ8KUONUjpf+U73gags=
175-
github.com/moby/moby/client v0.1.0-beta.2.0.20251028144225-90109a373da9 h1:iAQD/kAfqMAb2p48advqXGOT8eWyEv+Xge7KbcsZduk=
176-
github.com/moby/moby/client v0.1.0-beta.2.0.20251028144225-90109a373da9/go.mod h1:1YrJTvhL771Q4xiwwe72NSS17lgsCF67xu8fEfSd77g=
173+
github.com/moby/moby/api v1.52.0-beta.2.0.20251028190856-e95f6c81912a h1:hd858FbmJ2dMF21M1vstSFKHgjnVqtLOCcEWWFlbIgw=
174+
github.com/moby/moby/api v1.52.0-beta.2.0.20251028190856-e95f6c81912a/go.mod h1:v0K/motq8oWmx+rtApG1rBTIpQ8KUONUjpf+U73gags=
175+
github.com/moby/moby/client v0.1.0-beta.2.0.20251028190856-e95f6c81912a h1:8cdhoVTOhYWgAvsKjEjHaxz4/OzuDKnNlNW5z1KOrWg=
176+
github.com/moby/moby/client v0.1.0-beta.2.0.20251028190856-e95f6c81912a/go.mod h1:1YrJTvhL771Q4xiwwe72NSS17lgsCF67xu8fEfSd77g=
177177
github.com/moby/patternmatcher v0.6.0 h1:GmP9lR19aU5GqSSFko+5pRqHi+Ohk1O69aFiKkVGiPk=
178178
github.com/moby/patternmatcher v0.6.0/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc=
179179
github.com/moby/swarmkit/v2 v2.1.0 h1:u+cJ5hSyF3HnzsyI+NtegYxdIPQIuibk7IbpXNxuISM=

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

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

vendor/github.com/moby/moby/client/client_interfaces.go

Lines changed: 0 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/moby/client/ping.go

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

vendor/modules.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ github.com/moby/docker-image-spec/specs-go/v1
168168
github.com/moby/go-archive
169169
github.com/moby/go-archive/compression
170170
github.com/moby/go-archive/tarheader
171-
# github.com/moby/moby/api v1.52.0-beta.2.0.20251028144225-90109a373da9
171+
# github.com/moby/moby/api v1.52.0-beta.2.0.20251028190856-e95f6c81912a
172172
## explicit; go 1.23.0
173173
github.com/moby/moby/api/pkg/authconfig
174174
github.com/moby/moby/api/pkg/stdcopy
@@ -190,7 +190,7 @@ github.com/moby/moby/api/types/storage
190190
github.com/moby/moby/api/types/swarm
191191
github.com/moby/moby/api/types/system
192192
github.com/moby/moby/api/types/volume
193-
# github.com/moby/moby/client v0.1.0-beta.2.0.20251028144225-90109a373da9
193+
# github.com/moby/moby/client v0.1.0-beta.2.0.20251028190856-e95f6c81912a
194194
## explicit; go 1.23.0
195195
github.com/moby/moby/client
196196
github.com/moby/moby/client/internal

0 commit comments

Comments
 (0)