-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use go-install instead of go-get in Makefile #3395
Conversation
go-install is the 'correct' way to install binaries in go 1.17 and later Signed-off-by: David Lanouette <David.Lanouette@RedHat.com>
Signed-off-by: David Lanouette <David.Lanouette@RedHat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, could you please confirm that it works for other go deps that use go-get-tool
in the Makefile (controller-gen, envtest,...)?
/run-e2e azure* |
Hi @zroubalik I ran it for all 4 dependencies and they all worked in both v1.17 and v1.18. I didn't try them in v1.16 or earlier. |
👋
ack, thanks for confirmation! |
Signed-off-by: David Lanouette <David.Lanouette@RedHat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution!
Signed-off-by: David Lanouette David.Lanouette@RedHat.com
Use go-install instead of go-get to install dependencies (controller-gen, kustomize, etc)
go-install is the 'correct' way to install binaries in go 1.17 and later.
NOTE: using go-install requires updating the version of kustomize to v4 (v3 is not go-installable). If this isn't OK at this time, this PR should be rejected.
Checklist
Fixes #2916