Skip to content

Commit 541ce72

Browse files
kylos101nandajavarma
authored andcommitted
Fix build errors
`make binary` and tests were failing because of k8s deps We were replacing k8s dependencies based on containerd 1.6.6: https://github.com/docker/buildx/blob/v0.9.1/go.mod#L62-L64 Containerd in buildx is now 1.7.2, https://github.com/docker/buildx/blob/v0.11.2/go.mod#L10, and uses k8s deps for 1.26.
1 parent 9f7e5da commit 541ce72

File tree

2 files changed

+44
-228
lines changed

2 files changed

+44
-228
lines changed

go.mod

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,14 @@ require (
8080
github.com/docker/docker-credential-helpers v0.7.0 // indirect
8181
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c // indirect
8282
github.com/docker/go-metrics v0.0.1 // indirect
83+
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
8384
github.com/felixge/httpsnoop v1.0.3 // indirect
8485
github.com/fvbommel/sortorder v1.0.2 // indirect
8586
github.com/go-logr/logr v1.2.4 // indirect
8687
github.com/go-logr/stdr v1.2.2 // indirect
88+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
89+
github.com/go-openapi/jsonreference v0.20.0 // indirect
90+
github.com/go-openapi/swag v0.19.14 // indirect
8791
github.com/gofrs/flock v0.8.1 // indirect
8892
github.com/gofrs/uuid v4.2.0+incompatible // indirect
8993
github.com/gogo/googleapis v1.4.1 // indirect
@@ -93,7 +97,6 @@ require (
9397
github.com/google/go-cmp v0.5.9 // indirect
9498
github.com/google/gofuzz v1.2.0 // indirect
9599
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
96-
github.com/googleapis/gnostic v0.5.5 // indirect
97100
github.com/gorilla/mux v1.8.0 // indirect
98101
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
99102
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
@@ -108,11 +111,13 @@ require (
108111
github.com/klauspost/compress v1.16.5 // indirect
109112
github.com/mailru/easyjson v0.7.6 // indirect
110113
github.com/jinzhu/gorm v1.9.11 // indirect
114+
github.com/josharian/intern v1.0.0 // indirect
111115
github.com/json-iterator/go v1.1.12 // indirect
112116
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
113117
github.com/klauspost/compress v1.16.5 // indirect
114118
github.com/kr/pretty v0.3.0 // indirect
115119
github.com/magiconair/properties v1.8.6 // indirect
120+
github.com/mailru/easyjson v0.7.6 // indirect
116121
github.com/mattn/go-colorable v0.1.13 // indirect
117122
github.com/mattn/go-isatty v0.0.17 // indirect
118123
github.com/mattn/go-runewidth v0.0.14 // indirect
@@ -127,6 +132,7 @@ require (
127132
github.com/moby/sys/symlink v0.2.0 // indirect
128133
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
129134
github.com/modern-go/reflect2 v1.0.2 // indirect
135+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
130136
github.com/opencontainers/runc v1.1.7 // indirect
131137
github.com/pelletier/go-toml v1.9.5 // indirect
132138
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
@@ -178,7 +184,9 @@ require (
178184
k8s.io/apimachinery v0.26.2 // indirect
179185
k8s.io/client-go v0.26.2 // indirect
180186
k8s.io/klog/v2 v2.90.1 // indirect
187+
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
181188
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
189+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
182190
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
183191
sigs.k8s.io/yaml v1.3.0 // indirect
184192
)
@@ -190,15 +198,4 @@ replace (
190198
// v1.2.1-beta.2 is the latest version, override to use v1.1.0 to avoid beta
191199
// https://github.com/vishvananda/netlink/compare/v1.1.0...v1.2.1-beta.2
192200
github.com/vishvananda/netlink => github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5
193-
194-
golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
195-
196-
// For k8s dependencies, we use a replace directive, to prevent them being
197-
// upgraded to the version specified in containerd, which is not relevant to the
198-
// version needed.
199-
// See https://github.com/docker/buildx/pull/948 for details.
200-
// https://github.com/docker/buildx/blob/v0.9.1/go.mod#L62-L64
201-
k8s.io/api => k8s.io/api v0.22.4
202-
k8s.io/apimachinery => k8s.io/apimachinery v0.22.4
203-
k8s.io/client-go => k8s.io/client-go v0.22.4
204201
)

0 commit comments

Comments
 (0)