Open JRBANCEL opened 3 months ago
We use client-gen like this:
client-gen
client-gen \ --input-base "github.com/<WHATEVER>/pkg/apis" \ --input "dedicated/v1alpha1" \ --output-pkg github.com/<WHATEVER>/pkg/clientset \ --go-header-file hack/header.txt \ --clientset-name versioned \ --output-dir ./pkg/clientset
Works fine in 1.22.0 (and v0.30.1).
v0.30.1
Now, when I bump go.mod to use 1.23.0, client-gen generates files with just the package statement:
package
// Code generated by client-gen. DO NOT EDIT. package v1alpha1
Output with -v 10 doesn't show anything interesting. I tried to update client-gen to v0.31.0, same result.
-v 10
v0.31.0
Several people in my team have the same issue with tooling like deepcopy-gen. Oddly, though, for me it seems to work.
deepcopy-gen
@JRBANCEL try to clean the go mod cache go clean -modcache, this worked for us
go clean -modcache
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 updateclient-gen
tov0.31.0
, same result.