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

[release-3.4] Setup a way to consistently manage go versions across scripts and go.mods #18016

Merged
merged 1 commit into from
May 16, 2024

Conversation

MadhavJivrajani
Copy link
Contributor

Replicating #17876

This commit adds a script to sync the version present in .go-version across all go.mod files as the toolchain directive. As part of that, this commit also modifies go.mod files that did not have synced toolchain directives.

Additionally, this also adds a script to verify all toolchain and go directives against the version present in .go-version as follows: (1) The go directive <= version in .go-version
(2) The toolchain directive == version in .go-version

This script runs as part of the make verify target, making it run as a presbumit by default.

/assign @ahrtr

This commit adds a script to sync the version present in .go-version
across all go.mod files as the toolchain directive. As part of that,
this commit also modifies go.mod files that did not have synced toolchain
directives.

Additionally, this also adds a script to verify all toolchain and go
directives against the version present in .go-version as follows:
(1) The go directive <= version in .go-version
(2) The toolchain directive == version in .go-version

This script runs as part of the `make verify` target, making it run
as a presbumit by default.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
@MadhavJivrajani MadhavJivrajani changed the title .*: sync go toolchain version and add ability to verify versions [release 3.4] .*: sync go toolchain version and add ability to verify versions May 15, 2024
@MadhavJivrajani MadhavJivrajani changed the title [release 3.4] .*: sync go toolchain version and add ability to verify versions [release-3.4] .*: sync go toolchain version and add ability to verify versions May 15, 2024
@MadhavJivrajani MadhavJivrajani changed the title [release-3.4] .*: sync go toolchain version and add ability to verify versions [release-3.4] Setup a way to consistently manage go versions across scripts and go.mods May 15, 2024
@jmhbnz
Copy link
Member

jmhbnz commented May 15, 2024

/retest

Copy link
Member

@ahrtr ahrtr 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 @MadhavJivrajani

@MadhavJivrajani
Copy link
Contributor Author

@ahrtr we should be good to go here.

@jmhbnz jmhbnz merged commit d37a470 into etcd-io:release-3.4 May 16, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants