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 to Go 1.21 #35

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Update to Go 1.21 #35

merged 2 commits into from
Oct 3, 2023

Conversation

chrisd8088
Copy link
Member

As our official policy for the Git LFS project is to support the latest version of Go, we upgrade our CI workflow to version 1.21, which was recently released.

We also drop CI job runs (and therefore official support) for versions older than 1.20, as they are not supported by upstream Go.

Note that several older required CI jobs will not run for this PR, and the newer jobs should be marked as required after this PR is merged.

As of Go version 1.21, the "go" command may, under certain circumstances,
fetch a different version of the Go toolchain than is provided locally, as
described in git-lfs/git-lfs#5477, PR git-lfs/build-dockers#58, and the
Go documentation:

https://go.dev/doc/toolchain

In general, we do not expect this to occur, as we specify an older
Go version in our go.mod file and so the locally-installed Go toolchain
should be newer than that version and therefore sufficient.

However, to be cautious and ensure we only try to run with the Go version
we have specified, we add the GOTOOLCHAIN=local environment variable
to all our GitHub Actions workflow jobs.  Defining this variable
will guarantee that Go will stop with an error rather than proceed to
download and run another version of itself.
As our official policy is to support the latest version of Go, we
upgrade our CI workflow to version 1.21, which was recently released.

We also drop support for versions older than 1.20 as they are
not supported by upstream Go.
@chrisd8088 chrisd8088 merged commit dbe7a69 into git-lfs:main Oct 3, 2023
2 checks passed
@chrisd8088 chrisd8088 deleted the update-go-1-21 branch October 3, 2023 16:16
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