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
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
The text was updated successfully, but these errors were encountered:
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:The text was updated successfully, but these errors were encountered: