-
Notifications
You must be signed in to change notification settings - Fork 2.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
Do not fail build on incorrect Go version #12809
Do not fail build on incorrect Go version #12809
Conversation
Signed-off-by: Florent Poinsard <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Not backporting this to |
@@ -17,7 +17,7 @@ | |||
source ./tools/shell_functions.inc | |||
|
|||
go version >/dev/null 2>&1 || fail "Go is not installed or is not in \$PATH. See https://vitess.io/contributing/build-from-source for install instructions." | |||
goversion_min 1.20.2 || fail "Go version reported: `go version`. Version 1.20.2+ required. See https://vitess.io/contributing/build-from-source for install instructions." | |||
goversion_min 1.20.2 || echo "Go version reported: `go version`. Version 1.20.2+ required. See https://vitess.io/contributing/build-from-source for install instructions." |
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.
required -> recommended.
Otherwise the message is misleading, it's easy to assume that the build failed because historically that is what used to happen.
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.
Makes sense, i'll update this.
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.
Fix Pull Request: #12841
…2812) * Do not fail build on incorrect Go version Signed-off-by: Florent Poinsard <[email protected]> * Remove misleading message in build.env Signed-off-by: Florent Poinsard <[email protected]> --------- Signed-off-by: Florent Poinsard <[email protected]> Co-authored-by: Florent Poinsard <[email protected]>
…vitessio#1789) * cherry pick of 12809 Signed-off-by: Vitess Cherry-Pick Bot <[email protected]> * Fix conflicts Signed-off-by: Florent Poinsard <[email protected]> --------- Signed-off-by: Vitess Cherry-Pick Bot <[email protected]> Signed-off-by: Florent Poinsard <[email protected]> Co-authored-by: Vitess Cherry-Pick Bot <[email protected]> Co-authored-by: Florent Poinsard <[email protected]>
Description
Following the recent Golang upgrade on main (#12706) we want to let developers choose whatever Golang version they want, and thus not fail the build if the version is not exactly what we expect.
There are several places where the Golang version has to be exactly how we expect it to be:
With the new automated process to upgrade the Golang version in the repository we now have more trusts that the two places listed above will always contain valid values.
If the version is not what we expect, we print a warning.
Related Issue(s)
build-on-*
pages with proper Golang instructions website#1433Checklist
Deployment Notes