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

Add toolchain to go.mod overrides #148

Merged
merged 1 commit into from
Aug 20, 2024
Merged

Add toolchain to go.mod overrides #148

merged 1 commit into from
Aug 20, 2024

Conversation

emcfarlane
Copy link
Contributor

@emcfarlane emcfarlane commented Aug 19, 2024

Ensures the toolchain is set. Issue from bufbuild/buf#3251 where upgrade drops the toolchain value.

@emcfarlane emcfarlane requested review from pkwarren and bufdev August 19, 2024 17:55
@@ -20,6 +20,8 @@ GO_GET_PKGS ?=
# Settable
GO_MOD_VERSION ?= 1.21
# Settable
GO_MOD_TOOLCHAIN ?= 1.23.0
Copy link
Contributor Author

@emcfarlane emcfarlane Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could set +auto to allow higher versions? https://go.dev/doc/toolchain

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this for now and then change it later if we want

@@ -70,6 +72,7 @@ upgradegodeps:
rm -f go.mod go.sum
go mod init $(GO_MODULE)
go mod edit -go=$(GO_MOD_VERSION)
go mod edit -toolchain=go$(GO_MOD_TOOLCHAIN)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
go mod edit -toolchain=go$(GO_MOD_TOOLCHAIN)
go mod edit -toolchain=go$(GO_MOD_TOOLCHAIN)+auto

@emcfarlane emcfarlane merged commit 13d1ab9 into main Aug 20, 2024
5 checks passed
@emcfarlane emcfarlane deleted the ed/gotoolchain branch August 20, 2024 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants