mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-10-02 03:24:42 +08:00
The changes we need are live on HEAD of the k8s published repos. It was
a bit of a journey, since Go fought me all the way.
---
### Drop our third_party fork of k8s deps in tools
The changes we need are released now (sort of - on HEAD anyway).
---
### Bump k8s.io/streaming to v0.37.0 (not rc) in tools
---
### Bump codegen deps to HEAD in tools
GOPROXY=direct go get \
k8s.io/apimachinery@master \
k8s.io/code-generator@master
This pins them to HEAD of master. Go is terrible here: The HEAD is not
actually tagged, so Go just uses the next "reachable" tag which is
v0.36.0-alpha. The datestamp is correct, though.
---
### Drop our third_party fork of k8s deps in root
The changes we need are released now (sort of - on HEAD anyway).
---
### Bump k8s deps to v0.37.0 (not rc) in root
---
### Bump apimachinery dep in root to HEAD in root
GOPROXY=direct go mod edit -replace
k8s.io/apimachinery=k8s.io/apimachinery@master
GOPROXY=direct go mod tidy
GOPROXY=direct go mod vendor
GOPROXY=direct go mod tidy
This approach (-replace) is needed because Go is horrible here.
The master branch of k8s.io/apimachinery is not tagged, per se, but
there is an OLDER tag which is "reachable" from HEAD. So go helpfully
decides to use that (v0.36.0-alpha.2). If we just `go get ... @master`
it works for that dep (pinned to the right date) but then it looks at
transitive deps. Because the tag seems to be 0.36 (older), it
recalculates all the OTHER dependencies and downgrades a whole tangle of
things to versions that match 0.36, but we are ACTUALLY on 0.37+.
This was the only approach that I (and Gemini) could find. Blech.
---
### Run updated codegens
---
### Use DV's new maxBytes capability for `[]byte`
Removes 1 custom.
57 lines
2.5 KiB
AMPL
57 lines
2.5 KiB
AMPL
module github.com/agent-substrate/substrate/hack/tools/code-generator
|
|
|
|
go 1.27.0
|
|
|
|
require (
|
|
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
|
|
github.com/fxamacker/cbor/v2 v2.9.2 // indirect
|
|
github.com/go-logr/logr v1.4.4 // indirect
|
|
github.com/go-openapi/jsonpointer v1.0.0 // indirect
|
|
github.com/go-openapi/jsonreference v1.0.0 // indirect
|
|
github.com/go-openapi/swag v0.28.0 // indirect
|
|
github.com/go-openapi/swag/cmdutils v0.28.0 // indirect
|
|
github.com/go-openapi/swag/conv v0.28.0 // indirect
|
|
github.com/go-openapi/swag/fileutils v0.28.0 // indirect
|
|
github.com/go-openapi/swag/jsonutils v0.28.0 // indirect
|
|
github.com/go-openapi/swag/loading v0.28.0 // indirect
|
|
github.com/go-openapi/swag/mangling v0.28.0 // indirect
|
|
github.com/go-openapi/swag/netutils v0.28.0 // indirect
|
|
github.com/go-openapi/swag/pools v0.28.0 // indirect
|
|
github.com/go-openapi/swag/stringutils v0.28.0 // indirect
|
|
github.com/go-openapi/swag/typeutils v0.28.0 // indirect
|
|
github.com/go-openapi/swag/yamlutils v0.28.0 // indirect
|
|
github.com/google/gnostic-models v0.7.1 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
|
github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect
|
|
github.com/spf13/pflag v1.0.10 // indirect
|
|
github.com/x448/float16 v0.8.4 // indirect
|
|
go.yaml.in/yaml/v2 v2.4.4 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.5 // indirect
|
|
golang.org/x/mod v0.40.0 // indirect
|
|
golang.org/x/net v0.58.0 // indirect
|
|
golang.org/x/sync v0.22.0 // indirect
|
|
golang.org/x/text v0.41.0 // indirect
|
|
golang.org/x/tools v0.49.0 // indirect
|
|
google.golang.org/protobuf v1.36.12 // indirect
|
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
|
k8s.io/apimachinery v0.36.0-alpha.2.0.20260904054801-5a60cf1c6b81 // indirect
|
|
k8s.io/code-generator v0.30.0-alpha.3.0.20260904060942-0cddac4383e4 // indirect
|
|
k8s.io/gengo/v2 v2.0.0-20260408192533-25e2208e0dc3 // indirect
|
|
k8s.io/klog/v2 v2.140.0 // indirect
|
|
k8s.io/kube-openapi v0.0.0-20260721132016-d427ff9ee9ad // indirect
|
|
k8s.io/streaming v0.37.0 // indirect
|
|
k8s.io/utils v0.0.0-20260707023825-cf1189d6abe3 // indirect
|
|
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
|
|
sigs.k8s.io/randfill v1.0.0 // indirect
|
|
sigs.k8s.io/structured-merge-diff/v6 v6.4.2 // indirect
|
|
sigs.k8s.io/yaml v1.6.0 // indirect
|
|
)
|
|
|
|
tool (
|
|
k8s.io/code-generator/cmd/client-gen
|
|
k8s.io/code-generator/cmd/informer-gen
|
|
k8s.io/code-generator/cmd/lister-gen
|
|
k8s.io/code-generator/cmd/validation-gen
|
|
)
|