-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"kubebuilder create api" does not work with Go 1.18 #2543
Comments
Ah, I from a quick skim of #2530 I had assumed that Go versions >=1.17 were meant to be supported and I didn't notice #2527 because I was only looking through open issues. I've only done a little bit of work on my project so far but nothing seems obviously broken after my change to the Makefile. I'm going to see if I can get away with using Go 1.18 for now instead of downgrading to 1.17.x. I will leave it up to you to decide if you want to close this issue. |
If you use the master branch it probably will work see: #2486 |
Do you have any plans to create a release so upstream dependencies can also be tagged (operator-sdk) so we can update to go 1.18? |
HI @Vaxuite, Could you try:
I raised an issue for we work on the required changes for we began to support it: #2559. WDYT? Would you like to work on this one? |
Closing this issue in favor of #2559 |
Hello,
|
What broke? What's expected?
I have just tried to create a new kubebuilder project using Go 1.18
Calling
kubebuilder create api
in a new kubebuilder project fails with an error because "controller-gen" cannot be found."kubebuilder create api" output
This seems to be related to the deprecation of 'go get' for installing executables
Changing
go-get-tool
to usego install
instead ofgo get
in the generated Makefile seems to have fixed this for me:From a quick peek at PR #2383 there may also be other problems in kubebuilder related to the use of
go get
Reproducing this issue
No response
KubeBuilder (CLI) Version
Version: main.version{KubeBuilderVersion:"3.3.0", KubernetesVendor:"1.23.1", GitCommit:"47859bf2ebf96a64db69a2f7074ffdec7f15c1ec", BuildDate:"2022-01-18T17:03:29Z", GoOs:"linux", GoArch:"amd64"}
PROJECT version
No response
Plugin versions
No response
Other versions
go version go1.18 linux/amd64
Extra Labels
No response
The text was updated successfully, but these errors were encountered: