-
Notifications
You must be signed in to change notification settings - Fork 524
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
Makefile: always use .go_version #4710
Conversation
Run ./script/run_with_go_ver in the Makefile to force the use of the Go version defined in .go_version for all targets and subprocesses. This ensures also ensures we can build on machines that do not have Go installed already.
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪Steps errorsExpand to view the steps failures
|
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
Adding this to the test plan to verify that subsequent release-manager builds are built with the expected version of Go. |
Run ./script/run_with_go_ver in the Makefile to force the use of the Go version defined in .go_version for all targets and subprocesses. This ensures also ensures we can build on machines that do not have Go installed already. # Conflicts: # Makefile
Run ./script/run_with_go_ver in the Makefile to force the use of the Go version defined in .go_version for all targets and subprocesses. This ensures also ensures we can build on machines that do not have Go installed already. # Conflicts: # Makefile
Checked printing the |
Motivation/summary
The Makefile runs various Go commands as part of variable expansions, for example to identify the beats module and to determine $GOOS. This only works if Go is installed on the machine already.
To better support machines that do not have Go installed, and to avoid running builds with mixed versions of Go, run
./script/run_with_go_ver
in the Makefile to force the use of the Go version defined in .go_version for all targets, shell invocations, and subprocesses. This ensures also ensures we can build on machines that do not have Go installed already.How to test these changes
make
, check apm-server is built with the appropriate version of GoRelated issues
None.