-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
go.mod vendor: ensure we never have the toolchain directive set #24403
base: main
Are you sure you want to change the base?
Conversation
lgtm |
go.mod
Outdated
// Warning: Ensure the "go" and "toolchain" versions match exactly to prevent unwanted auto-updates. | ||
// That generally means there should be no toolchain directive present. |
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.
This wording confuses me a little: I might spend myself looking for a toolchain
line. Would it make sense to rephrase as something closer to
// Warning: if there is a "toolchain" directive anywhere in this file (and most of the time there shouldn't be), its version must be an exact match to the "go" directive
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.
sure
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Like our main go.mod we never want to force a specific toolchain. Signed-off-by: Paul Holzinger <[email protected]>
Ensure nobody modifies files directly there. Signed-off-by: Paul Holzinger <[email protected]>
We never want the toolchain as the default is to use the same as the go version. So the only purpose of toolchain is to force a newer compiler than necessary which we do not want as we are getting build by many different distributions and block builds that would otherwise work fine is just not helpful to anyone. Also update the go.mod comments remind people that there should be no toolchain. The make vendor target with the toolchain will now guarantee this so the CI will fail otherwise. Signed-off-by: Paul Holzinger <[email protected]>
Does this PR introduce a user-facing change?