Skip to content

Commit fe94800

Browse files
committed
Downgrade go version requirement to 1.19
Previously, we had upgraded this library to be compatible with a number of features introduced in go 1.20. Our compatibility with the multi-cause errors does not depend on those features being available in the stdlib so the requirement in go.mod is being downgraded to 1.19. This removes the need for an older compatibility branch released as version 1.10.1 of this library. Go 1.20 features are only necessary to run tests. GitHub actions are adjusted to additionally test for a successful build on 1.19.
1 parent fed2d3b commit fe94800

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,24 @@ on:
77
branches: [ master ]
88

99
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go:
15+
- "1.18"
16+
- "1.19"
17+
- "1.20"
18+
steps:
19+
- uses: actions/checkout@v3
20+
21+
- name: Set up Go (${{ matrix.go }}
22+
uses: actions/setup-go@v4
23+
with:
24+
go-version: ${{ matrix.go }}
1025

26+
- name: Build (${{ matrix.go }})
27+
run: go build ./...
1128
build-and-test:
1229
runs-on: ubuntu-latest
1330
strategy:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/cockroachdb/errors
22

3-
go 1.20
3+
go 1.19
44

55
require (
66
github.com/cockroachdb/datadriven v1.0.2

0 commit comments

Comments
 (0)