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

Commits on Oct 3, 2023

  1. .github/workflows: force use of local Go toolchain

    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.
    chrisd8088 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    40ac172 View commit details
    Browse the repository at this point in the history
  2. .github/workflows: update to Go 1.21

    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 committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    7850249 View commit details
    Browse the repository at this point in the history