Commit 20272d2
authored
misc: downgrade indirect dependency (#128)
After
#122
this project would fail to build with the following error.
```
> go build .
# k8s.io/apimachinery/pkg/util/managedfields/internal
../../.local/gopath/pkg/mod/k8s.io/[email protected]/pkg/util/managedfields/internal/typeconverter.go:51:61: cannot use typeSchema.Types (variable of type []"sigs.k8s.io/structured-merge-diff/v6/schema".TypeDef) as []"sigs.k8s.io/structured-merge-diff/v4/schema".TypeDef value in struct literal
```
Yes, I know we need CI/CD. It's coming!
I ran `go mod graph` and noticed that all packages used
`sigs.k8s.io/structured-merge-diff/v4` except for `k8s.io/kube-openapi`
which used `sigs.k8s.io/structured-merge-diff/v6`.
```
> go mod graph
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
k8s.io/[email protected] sigs.k8s.io/structured-merge-diff/[email protected]
```
I downgraded `k8s.io/kube-openapi` to the commit just before it upgraded
to `sigs.k8s.io/structured-merge-diff/v6`.
```
> go get -u k8s.io/kube-openapi@9bd5c66d9911c53f5aedb8595fde9c229ca56703
go: downgraded k8s.io/kube-openapi v0.0.0-20250814151709-d7b6acb124c3 => v0.0.0-20250701173324-9bd5c66d9911
```
All good now!1 parent b88acf1 commit 20272d2
2 files changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
109 | 108 | | |
110 | 109 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
| 296 | + | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 307 | + | |
| 308 | + | |
311 | 309 | | |
312 | 310 | | |
313 | 311 | | |
0 commit comments