Skip to content

Commit a0e1296

Browse files
committed
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 4e694c4 commit a0e1296

File tree

2 files changed

+54
-224
lines changed

2 files changed

+54
-224
lines changed

go.mod

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,21 @@ 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/gogo/googleapis v1.4.1 // indirect
8993
github.com/gogo/protobuf v1.3.2 // indirect
9094
github.com/golang/protobuf v1.5.3 // indirect
95+
github.com/google/gnostic v0.5.7-v3refs // indirect
9196
github.com/google/gofuzz v1.2.0 // indirect
9297
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
93-
github.com/googleapis/gnostic v0.5.5 // indirect
9498
github.com/gorilla/mux v1.8.0 // indirect
9599
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
96100
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
@@ -100,11 +104,13 @@ require (
100104
github.com/in-toto/in-toto-golang v0.5.0 // indirect
101105
github.com/inconshreveable/mousetrap v1.1.0 // indirect
102106
github.com/jinzhu/gorm v1.9.11 // indirect
107+
github.com/josharian/intern v1.0.0 // indirect
103108
github.com/json-iterator/go v1.1.12 // indirect
104109
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
105110
github.com/klauspost/compress v1.16.5 // indirect
106111
github.com/kr/pretty v0.3.0 // indirect
107112
github.com/magiconair/properties v1.8.6 // indirect
113+
github.com/mailru/easyjson v0.7.6 // indirect
108114
github.com/mattn/go-colorable v0.1.13 // indirect
109115
github.com/mattn/go-isatty v0.0.17 // indirect
110116
github.com/mattn/go-runewidth v0.0.14 // indirect
@@ -166,7 +172,9 @@ require (
166172
k8s.io/apimachinery v0.26.7 // indirect
167173
k8s.io/client-go v0.26.7 // indirect
168174
k8s.io/klog/v2 v2.90.1 // indirect
175+
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
169176
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
177+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
170178
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
171179
sigs.k8s.io/yaml v1.3.0 // indirect
172180
)
@@ -178,15 +186,4 @@ replace (
178186
// v1.2.1-beta.2 is the latest version, override to use v1.1.0 to avoid beta
179187
// https://github.com/vishvananda/netlink/compare/v1.1.0...v1.2.1-beta.2
180188
github.com/vishvananda/netlink => github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5
181-
182-
golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
183-
184-
// For k8s dependencies, we use a replace directive, to prevent them being
185-
// upgraded to the version specified in containerd, which is not relevant to the
186-
// version needed.
187-
// See https://github.com/docker/buildx/pull/948 for details.
188-
// https://github.com/docker/buildx/blob/v0.9.1/go.mod#L62-L64
189-
k8s.io/api => k8s.io/api v0.22.4
190-
k8s.io/apimachinery => k8s.io/apimachinery v0.22.4
191-
k8s.io/client-go => k8s.io/client-go v0.22.4
192189
)

0 commit comments

Comments
 (0)