Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code-generator v0.31.0 incompatible with k8s.io/gengo/v2 v2.0.0-20240812201722-3b05ca7b6e59 #177

Closed
danielvegamyhre opened this issue Aug 16, 2024 · 0 comments

Comments

@danielvegamyhre
Copy link
Member

In my project k8s.io/gengo/v2 v2.0.0-20240812201722-3b05ca7b6e59 was bumped indirectly from updating k8s.io/api packages to v0.31.0, but now k8s.io/code-generator@v0.31.0 is failing, seemingly due to an incompatibility with genkgo/v2 package:

./hack/update-codegen.sh go ~/go/src/sigs.k8s.io/jobset/bin
# k8s.io/code-generator/cmd/deepcopy-gen/generators
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/deepcopy-gen/generators/deepcopy.go:280:38: f.Signature.Results[0].Kind undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Kind)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/deepcopy-gen/generators/deepcopy.go:280:86: f.Signature.Results[0].Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/deepcopy-gen/generators/deepcopy.go:281:49: invalid operation: f.Signature.Results[0].Name == t.Name (mismatched types string and "k8s.io/gengo/v2/types".Name)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/deepcopy-gen/generators/deepcopy.go:332:40: f.Signature.Parameters[0].Kind undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Kind)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/deepcopy-gen/generators/deepcopy.go:332:91: f.Signature.Parameters[0].Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/deepcopy-gen/generators/deepcopy.go:699:33: dc.Results[0].Kind undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Kind)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/deepcopy-gen/generators/deepcopy.go:815:34: dc.Results[0].Kind undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Kind)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/deepcopy-gen/generators/deepcopy.go:869:33: dc.Results[0].Kind undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Kind)
# k8s.io/code-generator/cmd/defaulter-gen/generators
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/defaulter-gen/generators/defaulter.go:169:13: inType.Kind undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Kind)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/defaulter-gen/generators/defaulter.go:173:41: inType.Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/defaulter-gen/generators/defaulter.go:177:18: inType.Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/defaulter-gen/generators/defaulter.go:189:18: inType.Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/defaulter-gen/generators/defaulter.go:210:18: inType.Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
# k8s.io/code-generator/cmd/conversion-gen/generators
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/conversion-gen/generators/conversion.go:161:72: invalid operation: signature.Parameters[2].Name != scopeName (mismatched types string and "k8s.io/gengo/v2/types".Name)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/conversion-gen/generators/conversion.go:165:66: invalid operation: signature.Results[0].Name != errorName (mismatched types string and "k8s.io/gengo/v2/types".Name)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/conversion-gen/generators/conversion.go:171:13: inType.Kind undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Kind)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/conversion-gen/generators/conversion.go:171:46: outType.Kind undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Kind)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/conversion-gen/generators/conversion.go:177:31: inType.Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/conversion-gen/generators/conversion.go:177:45: outType.Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/conversion-gen/generators/conversion.go:181:33: inType.Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
../../../../pkg/mod/k8s.io/code-generator@v0.31.0/cmd/conversion-gen/generators/conversion.go:181:47: outType.Elem undefined (type *"k8s.io/gengo/v2/types".ParamResult has no field or method Elem)
make: *** [Makefile:95: generate] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant