You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's happening here is that code-generator needs to built with the same major.minor version of Go as your project (due to the way it hooks into the go toolchain). If you use go install or go run it will automatically downgrade to the toolchain version in the code-generator go.mod.
To fix this, just export GOTOOLCHAIN=go1.23.3 or whatever version is appropriate before running go install / go run.
We use
client-gen
like this:Works fine in 1.22.0 (and
v0.30.1
).Now, when I bump go.mod to use 1.23.0,
client-gen
generates files with just thepackage
statement:Output with
-v 10
doesn't show anything interesting.I tried to update
client-gen
tov0.31.0
, same result.The text was updated successfully, but these errors were encountered: