Skip to content

Commit

Permalink
go.mod,.github: upgrade to Go 1.21
Browse files Browse the repository at this point in the history
There's an effort underway to upgrade to Go 1.21 before shipping 23.2. Begin
testing 1.21 in Pebble CI, and declare Go 1.21 in the go.mod file.

Informs cockroachdb/cockroach#97260.
  • Loading branch information
jbowens committed Oct 5, 2023
1 parent bb2319b commit 3ba1ebe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- run: make test generate

Expand All @@ -34,7 +34,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- run: GOARCH=386 make test

Expand All @@ -47,7 +47,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- run: make crossversion-meta

Expand All @@ -60,7 +60,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- run: make testrace TAGS=

Expand All @@ -73,7 +73,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- run: make test TAGS=

Expand All @@ -86,7 +86,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- run: CGO_ENABLED=0 make test TAGS=

Expand All @@ -99,7 +99,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- run: make test

Expand All @@ -112,7 +112,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- run: go test -v ./...

Expand All @@ -125,7 +125,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- name: FreeBSD build
env:
Expand All @@ -151,7 +151,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
go-version: "1.21"

- name: mod-tidy-check
run: make mod-tidy-check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/code-cover-gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20"
go-version: "1.21"

- name: Get list of changed packages
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-code-cover.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20"
go-version: "1.21"

- name: Generate coverage
run: scripts/code-coverage.sh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sanitizers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20.1"
go-version: "1.21"

- run: make testasan

Expand All @@ -27,6 +27,6 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "1.20.1"
go-version: "1.21"

- run: make testmsan
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ require (
gopkg.in/yaml.v3 v3.0.0 // indirect
)

go 1.20
go 1.21

0 comments on commit 3ba1ebe

Please sign in to comment.