Skip to content

Commit 726d89c

Browse files
committed
Bump some deps
This includes a thorny (but logical) change in docker's api types which are breaking to us but shouldn't be breaking to our consumers. Signed-off-by: Jon Johnson <[email protected]>
1 parent 5b10395 commit 726d89c

File tree

129 files changed

+2931
-1830
lines changed

Some content is hidden

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

129 files changed

+2931
-1830
lines changed

go.mod

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,40 @@
11
module github.com/google/go-containerregistry
22

3-
go 1.24.0
3+
go 1.24
44

55
require (
66
github.com/containerd/stargz-snapshotter/estargz v0.16.3
7-
github.com/docker/cli v28.1.1+incompatible
7+
github.com/docker/cli v28.2.2+incompatible
88
github.com/docker/distribution v2.8.3+incompatible
9-
github.com/docker/docker v28.1.1+incompatible
9+
github.com/docker/docker v28.2.2+incompatible
1010
github.com/google/go-cmp v0.7.0
1111
github.com/klauspost/compress v1.18.0
1212
github.com/mitchellh/go-homedir v1.1.0
13+
github.com/moby/docker-image-spec v1.3.1
1314
github.com/opencontainers/go-digest v1.0.0
1415
github.com/opencontainers/image-spec v1.1.1
1516
github.com/spf13/cobra v1.9.1
1617
golang.org/x/oauth2 v0.30.0
17-
golang.org/x/sync v0.14.0
18-
golang.org/x/tools v0.33.0
18+
golang.org/x/sync v0.15.0
19+
golang.org/x/tools v0.34.0
1920
)
2021

2122
require (
22-
cloud.google.com/go/compute/metadata v0.6.0 // indirect
23+
cloud.google.com/go/compute/metadata v0.7.0 // indirect
2324
github.com/Microsoft/go-winio v0.6.2 // indirect
25+
github.com/containerd/errdefs v1.0.0 // indirect
26+
github.com/containerd/errdefs/pkg v0.3.0 // indirect
2427
github.com/containerd/log v0.1.0 // indirect
2528
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
2629
github.com/distribution/reference v0.6.0 // indirect
2730
github.com/docker/docker-credential-helpers v0.9.3 // indirect
2831
github.com/docker/go-connections v0.5.0 // indirect
2932
github.com/docker/go-units v0.5.0 // indirect
3033
github.com/felixge/httpsnoop v1.0.4 // indirect
31-
github.com/go-logr/logr v1.4.2 // indirect
34+
github.com/go-logr/logr v1.4.3 // indirect
3235
github.com/go-logr/stdr v1.2.2 // indirect
3336
github.com/gogo/protobuf v1.3.2 // indirect
3437
github.com/inconshreveable/mousetrap v1.1.0 // indirect
35-
github.com/moby/docker-image-spec v1.3.1 // indirect
3638
github.com/moby/sys/atomicwriter v0.1.0 // indirect
3739
github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect
3840
github.com/morikuni/aec v1.0.0 // indirect
@@ -42,12 +44,12 @@ require (
4244
github.com/spf13/pflag v1.0.6 // indirect
4345
github.com/vbatts/tar-split v0.12.1 // indirect
4446
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
45-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.60.0 // indirect
46-
go.opentelemetry.io/otel v1.35.0 // indirect
47+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect
48+
go.opentelemetry.io/otel v1.36.0 // indirect
4749
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.33.0 // indirect
48-
go.opentelemetry.io/otel/metric v1.35.0 // indirect
49-
go.opentelemetry.io/otel/trace v1.35.0 // indirect
50-
golang.org/x/mod v0.24.0 // indirect
50+
go.opentelemetry.io/otel/metric v1.36.0 // indirect
51+
go.opentelemetry.io/otel/trace v1.36.0 // indirect
52+
golang.org/x/mod v0.25.0 // indirect
5153
golang.org/x/sys v0.33.0 // indirect
5254
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
5355
google.golang.org/protobuf v1.36.3 // indirect

go.sum

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

pkg/v1/daemon/image.go

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ import (
2121
"sync"
2222
"time"
2323

24-
"github.com/docker/docker/api/types/container"
2524
api "github.com/docker/docker/api/types/image"
2625

2726
"github.com/google/go-containerregistry/pkg/name"
2827
v1 "github.com/google/go-containerregistry/pkg/v1"
2928
"github.com/google/go-containerregistry/pkg/v1/tarball"
3029
"github.com/google/go-containerregistry/pkg/v1/types"
30+
specs "github.com/moby/docker-image-spec/specs-go/v1"
3131
)
3232

3333
type image struct {
@@ -298,33 +298,24 @@ func (i *image) computeConfigFile(inspect api.InspectResponse) (*v1.ConfigFile,
298298
}, nil
299299
}
300300

301-
func (i *image) computeImageConfig(config *container.Config) v1.Config {
301+
func (i *image) computeImageConfig(config *specs.DockerOCIImageConfig) v1.Config {
302302
if config == nil {
303303
return v1.Config{}
304304
}
305305

306306
c := v1.Config{
307-
AttachStderr: config.AttachStderr,
308-
AttachStdin: config.AttachStdin,
309-
AttachStdout: config.AttachStdout,
310-
Cmd: config.Cmd,
311-
Domainname: config.Domainname,
312-
Entrypoint: config.Entrypoint,
313-
Env: config.Env,
314-
Hostname: config.Hostname,
315-
Image: config.Image,
316-
Labels: config.Labels,
317-
OnBuild: config.OnBuild,
318-
OpenStdin: config.OpenStdin,
319-
StdinOnce: config.StdinOnce,
320-
Tty: config.Tty,
321-
User: config.User,
322-
Volumes: config.Volumes,
323-
WorkingDir: config.WorkingDir,
324-
ArgsEscaped: config.ArgsEscaped,
325-
NetworkDisabled: config.NetworkDisabled,
326-
StopSignal: config.StopSignal,
327-
Shell: config.Shell,
307+
Cmd: config.Cmd,
308+
Entrypoint: config.Entrypoint,
309+
Env: config.Env,
310+
Labels: config.Labels,
311+
OnBuild: config.OnBuild,
312+
User: config.User,
313+
Volumes: config.Volumes,
314+
WorkingDir: config.WorkingDir,
315+
//lint:ignore SA1019 this is erroneously deprecated, as windows uses it
316+
ArgsEscaped: config.ArgsEscaped,
317+
StopSignal: config.StopSignal,
318+
Shell: config.Shell,
328319
}
329320

330321
if config.Healthcheck != nil {

pkg/v1/daemon/image_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import (
2323
"strings"
2424
"testing"
2525

26-
"github.com/docker/docker/api/types/container"
2726
api "github.com/docker/docker/api/types/image"
2827
"github.com/docker/docker/api/types/storage"
2928
"github.com/docker/docker/client"
29+
specs "github.com/moby/docker-image-spec/specs-go/v1"
3030

3131
"github.com/google/go-containerregistry/pkg/name"
3232
"github.com/google/go-containerregistry/pkg/v1/compare"
@@ -48,7 +48,7 @@ var inspectResp = api.InspectResponse{
4848
Os: "linux",
4949
Size: 8,
5050
VirtualSize: 8,
51-
Config: &container.Config{},
51+
Config: &specs.DockerOCIImageConfig{},
5252
GraphDriver: storage.DriverData{
5353
Data: map[string]string{
5454
"MergedDir": "/var/lib/docker/overlay2/988ecd005d048fd47b241dd57687231859563ba65a1dfd01ae1771ebfc4cb7c5/merged",

vendor/cloud.google.com/go/compute/metadata/CHANGES.md

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

0 commit comments

Comments
 (0)