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

Update go version as well as toolchain version. #966

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

robdimsdale
Copy link
Member

@robdimsdale robdimsdale commented Jul 10, 2024

This PR changes the behavior of the action that updates the go toolchain version to also update the go version in addition to updating the toolchain version. This is necessary because some of our dependencies have higher versions of go than we do and in order to keep them up to date we must also bump to the minimum version of go that they have. Rather than trying to identify the lowest-common-denominator across all dependencies it is easier to always use the latest version.

If we wanted to ensure that we did not need the latest version of go, we could choose to not bump these dependencies. But I think we should keep our dependencies up to date and accept the golang bump. Especially because most of our products are binaries and not libraries, and hence we can control the version of golang they are built with.

See this conversation for more details.

I opted to keep the toolchain directive even though it's probably no longer necessary because I felt like being explicit is probably better than relying on the default behavior, given how confusing this situation is for all of us.

- this is because many of our dependencies have higher versions of go than we do and we would rather keep up to date with them vs supporting older versions of go. Especially because most of our products are binaries and not libraries.
@robdimsdale robdimsdale requested a review from a team as a code owner July 10, 2024 22:51
@robdimsdale robdimsdale enabled auto-merge (rebase) July 10, 2024 22:51
@robdimsdale robdimsdale merged commit e55cef0 into main Jul 11, 2024
4 checks passed
@robdimsdale robdimsdale deleted the update-go-and-toolchain branch July 11, 2024 19:03
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.

None yet

2 participants