Skip to content

Commit 9b45a0d

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 56fde8b commit 9b45a0d

File tree

2 files changed

+57
-242
lines changed

2 files changed

+57
-242
lines changed

go.mod

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,22 @@ 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
9094
github.com/gogo/protobuf v1.3.2 // indirect
9195
github.com/golang/protobuf v1.5.3 // indirect
96+
github.com/google/gnostic v0.5.7-v3refs // indirect
9297
github.com/google/gofuzz v1.2.0 // indirect
9398
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
94-
github.com/googleapis/gnostic v0.5.5 // indirect
9599
github.com/gorilla/mux v1.8.0 // indirect
96100
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
97101
github.com/grpc-ecosystem/grpc-gateway/v2 v2.11.3 // indirect
@@ -101,11 +105,13 @@ require (
101105
github.com/in-toto/in-toto-golang v0.5.0 // indirect
102106
github.com/inconshreveable/mousetrap v1.1.0 // indirect
103107
github.com/jinzhu/gorm v1.9.11 // indirect
108+
github.com/josharian/intern v1.0.0 // indirect
104109
github.com/json-iterator/go v1.1.12 // indirect
105110
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
106111
github.com/klauspost/compress v1.16.5 // indirect
107112
github.com/kr/pretty v0.3.0 // indirect
108113
github.com/magiconair/properties v1.8.6 // indirect
114+
github.com/mailru/easyjson v0.7.6 // indirect
109115
github.com/mattn/go-colorable v0.1.13 // indirect
110116
github.com/mattn/go-isatty v0.0.17 // indirect
111117
github.com/mattn/go-runewidth v0.0.14 // indirect
@@ -120,6 +126,7 @@ require (
120126
github.com/moby/sys/symlink v0.2.0 // indirect
121127
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
122128
github.com/modern-go/reflect2 v1.0.2 // indirect
129+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
123130
github.com/opencontainers/runc v1.1.7 // indirect
124131
github.com/pelletier/go-toml v1.9.5 // indirect
125132
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
@@ -171,7 +178,9 @@ require (
171178
k8s.io/apimachinery v0.26.2 // indirect
172179
k8s.io/client-go v0.26.2 // indirect
173180
k8s.io/klog/v2 v2.90.1 // indirect
181+
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
174182
k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 // indirect
183+
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
175184
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
176185
sigs.k8s.io/yaml v1.3.0 // indirect
177186
)
@@ -183,15 +192,4 @@ replace (
183192
// v1.2.1-beta.2 is the latest version, override to use v1.1.0 to avoid beta
184193
// https://github.com/vishvananda/netlink/compare/v1.1.0...v1.2.1-beta.2
185194
github.com/vishvananda/netlink => github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5
186-
187-
golang.org/x/oauth2 => golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
188-
189-
// For k8s dependencies, we use a replace directive, to prevent them being
190-
// upgraded to the version specified in containerd, which is not relevant to the
191-
// version needed.
192-
// See https://github.com/docker/buildx/pull/948 for details.
193-
// https://github.com/docker/buildx/blob/v0.9.1/go.mod#L62-L64
194-
k8s.io/api => k8s.io/api v0.22.4
195-
k8s.io/apimachinery => k8s.io/apimachinery v0.22.4
196-
k8s.io/client-go => k8s.io/client-go v0.22.4
197195
)

0 commit comments

Comments
 (0)