Skip to content

Commit

Permalink
all: Add Go 1.22, drop Go 1.20
Browse files Browse the repository at this point in the history
Switches CI to run against Go 1.21 and 1.22,
and bumps the minimum required Go version to 1.21.

Dropping 1.20 isn't strictly necessary;
this is just matching prior upgrades.
It can be added back if the maintainers prefer.
  • Loading branch information
abhinav authored and mvdan committed Jun 10, 2024
1 parent c8567cf commit 1f3d244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
fail-fast: false
matrix:
go-version:
- '1.20.x'
- '1.21.x'
- '1.22.x'
os:
- ubuntu-latest
- macos-latest
Expand All @@ -33,7 +33,7 @@ jobs:
go test -race ./...
- name: Tidy
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.21.x' # no need to do this everywhere
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.22.x' # no need to do this everywhere
run: |
go mod tidy
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/rogpeppe/go-internal

go 1.20
go 1.21

require (
golang.org/x/mod v0.9.0
Expand Down

0 comments on commit 1f3d244

Please sign in to comment.