-
Notifications
You must be signed in to change notification settings - Fork 425
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
panic on type casting *types.Named
using Go 1.23 because of new *types.Alias
#1053
Comments
This is broken see kubernetes-sigs/controller-tools#1053 Signed-off-by: Mahe Tardy <[email protected]>
Thx for reporting. That sounds pretty bad |
If someone has time to take a look at this feel free to go ahead / open a PR /help |
@sbueringer: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@mtardy You are compiling controller-gen yourself, right? Does the published binary work? (https://github.com/kubernetes-sigs/controller-tools/releases/tag/v0.16.2) |
yep I have it vendored and use it. I would assume the published binary to work since it's built with 1.22 Line 3 in c69110a
I can try however :).
I hope I'm not too alarming here if the issue is based on my config (I saw #492). But the fact that this thing only breaks when I bump the Go version in the |
Okay I have a minimal reproducer and a fix, I'll post a PR just after (EDIT: here), here's how to reproduce the issue:
You should see something similar to:
|
*types.Named
using Go 1.23 because of new *types.Alias
This directive is not needed as we don't use any of the customization implemented in the Cilium fork, we need this for kubernetes-sigs/controller-tools#1053. Signed-off-by: Mahe Tardy <[email protected]>
This directive is not needed as we don't use any of the customization implemented in the Cilium fork, we need this for kubernetes-sigs/controller-tools#1053. Signed-off-by: Mahe Tardy <[email protected]>
This directive is not needed as we don't use any of the customization implemented in the Cilium fork, we need this for kubernetes-sigs/controller-tools#1053. Signed-off-by: Mahe Tardy <[email protected]>
This directive is not needed as we don't use any of the customization implemented in the Cilium fork, we need this for kubernetes-sigs/controller-tools#1053. Signed-off-by: Mahe Tardy <[email protected]>
This directive is not needed as we don't use any of the customization implemented in the Cilium fork, we need this for kubernetes-sigs/controller-tools#1053. Signed-off-by: Mahe Tardy <[email protected]>
This directive is not needed as we don't use any of the customization implemented in the Cilium fork, we need this for kubernetes-sigs/controller-tools#1053. Signed-off-by: Mahe Tardy <[email protected]>
Using it with Go 1.22 works and break with Go 1.23, I think it's related to this:
When using Go 1.23 and
tools/controller-gen
to generates my CRDs I get the following panic:You can use the project I'm working on for repro https://github.com/cilium/tetragon/actions/runs/10808612794/job/29981972633?pr=2800. Basically clone the project with that branch and run
make
inpkg/k8s
.The text was updated successfully, but these errors were encountered: