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

[BUG] Running make generate generates these warnings #279

Open
tssurya opened this issue Nov 26, 2024 · 2 comments
Open

[BUG] Running make generate generates these warnings #279

tssurya opened this issue Nov 26, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@tssurya
Copy link
Contributor

tssurya commented Nov 26, 2024

What happened:

Run make generate gives out warnings:

Generating applyconfig at sigs.k8s.io/network-policy-api/pkg/client/applyconfiguration
W1126 08:22:27.592996 1594040 parse.go:769] Making unsupported type entry "any" for: &types.Alias{obj:(*types.TypeName)(0xc0000c3180), orig:(*types.Alias)(0xc0000b6bc0), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Interface)(0xc0000c30e0), actual:(*types.Interface)(0xc0000c30e0)}
W1126 08:22:27.593523 1594040 parse.go:769] Making unsupported type entry "reflect.uncommonType" for: &types.Alias{obj:(*types.TypeName)(0xc009a7c5a0), orig:(*types.Alias)(0xc00a215140), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Named)(0xc000fa6c40), actual:(*types.Named)(0xc000fa6c40)}
Generating clientset at sigs.k8s.io/network-policy-api/pkg/client/clientset
W1126 08:22:29.265457 1594548 parse.go:769] Making unsupported type entry "any" for: &types.Alias{obj:(*types.TypeName)(0xc000154b90), orig:(*types.Alias)(0xc000124140), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Interface)(0xc000154af0), actual:(*types.Interface)(0xc000154af0)}
W1126 08:22:29.265896 1594548 parse.go:769] Making unsupported type entry "reflect.uncommonType" for: &types.Alias{obj:(*types.TypeName)(0xc009cfbef0), orig:(*types.Alias)(0xc00a3db840), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Named)(0xc000e04ee0), actual:(*types.Named)(0xc000e04ee0)}
Generating listers at sigs.k8s.io/network-policy-api/pkg/client/listers
W1126 08:22:31.230960 1595109 parse.go:769] Making unsupported type entry "any" for: &types.Alias{obj:(*types.TypeName)(0xc0000b0be0), orig:(*types.Alias)(0xc0000a4140), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Interface)(0xc0000b0b40), actual:(*types.Interface)(0xc0000b0b40)}
W1126 08:22:31.231489 1595109 parse.go:769] Making unsupported type entry "reflect.uncommonType" for: &types.Alias{obj:(*types.TypeName)(0xc006e18cd0), orig:(*types.Alias)(0xc0071415c0), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Named)(0xc000fc4a80), actual:(*types.Named)(0xc000fc4a80)}
Generating informers at sigs.k8s.io/network-policy-api/pkg/client/informers
Generating v1alpha1 register at /home/surya/go/src/sigs.k8s.io/network-policy-api/apis/v1alpha1
W1126 08:22:32.836129 1595911 parse.go:769] Making unsupported type entry "any" for: &types.Alias{obj:(*types.TypeName)(0xc0000b0be0), orig:(*types.Alias)(0xc0000a6140), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Interface)(0xc0000b0b40), actual:(*types.Interface)(0xc0000b0b40)}
W1126 08:22:32.836571 1595911 parse.go:769] Making unsupported type entry "reflect.uncommonType" for: &types.Alias{obj:(*types.TypeName)(0xc0072ffc70), orig:(*types.Alias)(0xc0077d5540), tparams:(*types.TypeParamList)(nil), targs:(*types.TypeList)(nil), fromRHS:(*types.Named)(0xc00053d960), actual:(*types.Named)(0xc00053d960)}
Generating v1alpha1 deepcopy at /home/surya/go/src/sigs.k8s.io/network-policy-api/apis/v1alpha1

We should probably investigate and fix these; might be related to the kube bump

@tssurya tssurya added the kind/bug Categorizes issue or PR as related to a bug. label Nov 26, 2024
@kundan2707
Copy link
Contributor

Go 1.23 made some changes to type alias which changes the behavior of Go type parsing, affecting the gengo code generation library.

@kundan2707
Copy link
Contributor

More detail can be found here kubernetes/gengo#281 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants