Skip to content

Commit b3e4955

Browse files
kylos101WVerlaek
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 fe90b08 commit b3e4955

File tree

2 files changed

+47
-248
lines changed

2 files changed

+47
-248
lines changed

go.mod

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,23 @@ require (
8383
github.com/docker/docker-credential-helpers v0.7.0 // indirect
8484
github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c // indirect
8585
github.com/docker/go-metrics v0.0.1 // indirect
86+
github.com/emicklei/go-restful/v3 v3.10.1 // indirect
8687
github.com/felixge/httpsnoop v1.0.3 // indirect
8788
github.com/fvbommel/sortorder v1.0.2 // indirect
8889
github.com/go-logr/logr v1.2.4 // indirect
8990
github.com/go-logr/stdr v1.2.2 // indirect
91+
github.com/go-openapi/jsonpointer v0.19.5 // indirect
92+
github.com/go-openapi/jsonreference v0.20.0 // indirect
93+
github.com/go-openapi/swag v0.19.14 // indirect
9094
github.com/gofrs/flock v0.8.1 // indirect
9195
github.com/gofrs/uuid v4.2.0+incompatible // indirect
9296
github.com/gogo/googleapis v1.4.1 // indirect
9397
github.com/gogo/protobuf v1.3.2 // indirect
9498
github.com/golang/protobuf v1.5.3 // indirect
99+
github.com/google/gnostic v0.5.7-v3refs // indirect
95100
github.com/google/go-cmp v0.5.9 // indirect
96101
github.com/google/gofuzz v1.2.0 // indirect
97102
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
98-
github.com/googleapis/gnostic v0.5.5 // indirect
99103
github.com/gorilla/mux v1.8.0 // indirect
100104
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
101105
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
@@ -108,11 +112,13 @@ require (
108112
github.com/in-toto/in-toto-golang v0.5.0 // indirect
109113
github.com/inconshreveable/mousetrap v1.1.0 // indirect
110114
github.com/jinzhu/gorm v1.9.11 // indirect
115+
github.com/josharian/intern v1.0.0 // indirect
111116
github.com/json-iterator/go v1.1.12 // indirect
112117
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
113118
github.com/klauspost/compress v1.16.5 // indirect
114119
github.com/kr/pretty v0.3.0 // indirect
115120
github.com/magiconair/properties v1.8.6 // indirect
121+
github.com/mailru/easyjson v0.7.6 // indirect
116122
github.com/mattn/go-colorable v0.1.13 // indirect
117123
github.com/mattn/go-isatty v0.0.17 // indirect
118124
github.com/mattn/go-runewidth v0.0.14 // indirect
@@ -127,6 +133,7 @@ require (
127133
github.com/moby/sys/symlink v0.2.0 // indirect
128134
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
129135
github.com/modern-go/reflect2 v1.0.2 // indirect
136+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
130137
github.com/opencontainers/runc v1.1.7 // indirect
131138
github.com/pelletier/go-toml v1.9.5 // indirect
132139
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
@@ -180,7 +187,9 @@ require (
180187
k8s.io/apimachinery v0.26.2 // indirect
181188
k8s.io/client-go v0.26.2 // indirect
182189
k8s.io/klog/v2 v2.90.1 // indirect
190+
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
183191
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
192+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
184193
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
185194
sigs.k8s.io/yaml v1.3.0 // indirect
186195
)
@@ -192,15 +201,4 @@ replace (
192201
// v1.2.1-beta.2 is the latest version, override to use v1.1.0 to avoid beta
193202
// https://github.com/vishvananda/netlink/compare/v1.1.0...v1.2.1-beta.2
194203
github.com/vishvananda/netlink => github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5
195-
196-
golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
197-
198-
// For k8s dependencies, we use a replace directive, to prevent them being
199-
// upgraded to the version specified in containerd, which is not relevant to the
200-
// version needed.
201-
// See https://github.com/docker/buildx/pull/948 for details.
202-
// https://github.com/docker/buildx/blob/v0.9.1/go.mod#L62-L64
203-
k8s.io/api => k8s.io/api v0.22.4
204-
k8s.io/apimachinery => k8s.io/apimachinery v0.22.4
205-
k8s.io/client-go => k8s.io/client-go v0.22.4
206204
)

0 commit comments

Comments
 (0)