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

Use go-install instead of go-get in Makefile #3395

Merged
merged 4 commits into from
Jul 18, 2022

Conversation

davidlanouette
Copy link
Contributor

@davidlanouette davidlanouette commented Jul 18, 2022

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

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)
  • [N/A] Tests have been added
  • [N/A] A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
  • [N/A] A PR is opened to update the documentation on (repo) (if applicable)
  • Changelog has been updated and is aligned with our changelog requirements

Fixes #2916

go-install is the 'correct' way to install binaries in go 1.17 and later

Signed-off-by: David Lanouette <David.Lanouette@RedHat.com>
@davidlanouette davidlanouette requested a review from a team as a code owner July 18, 2022 18:14
Signed-off-by: David Lanouette <David.Lanouette@RedHat.com>
Copy link
Member

@zroubalik zroubalik left a 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,...)?

@zroubalik
Copy link
Member

zroubalik commented Jul 18, 2022

/run-e2e azure*
Update: You can check the progress here

@davidlanouette
Copy link
Contributor Author

could you please confirm that it works for other go deps that use go-get-tool in the Makefile (controller-gen, envtest,...)?

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.

@zroubalik
Copy link
Member

could you please confirm that it works for other go deps that use go-get-tool in the Makefile (controller-gen, envtest,...)?

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>
Copy link
Member

@zroubalik zroubalik left a 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!

@zroubalik zroubalik merged commit ea58349 into kedacore:main Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to make kustomize work with go 1.18
2 participants