Skip to content

Commit 859c94c

Browse files
committed
Upgrade to Go 1.21
1 parent c7f9a10 commit 859c94c

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ updates:
44
- package-ecosystem: gomod
55
directory: "/"
66
schedule:
7-
interval: "daily"
7+
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: rlespinasse/github-slug-action@v4
14-
- uses: actions/setup-go@v3
14+
- uses: actions/setup-go@v4
1515
with:
16-
go-version: ^1.20
16+
go-version: ^1.21
1717
- run: cd /tmp && go install github.com/Antonboom/errname@${{ env.GITHUB_REF_NAME }} && errname -h
1818

1919
lint:
@@ -22,14 +22,15 @@ jobs:
2222
- uses: actions/checkout@v3
2323
- uses: golangci/golangci-lint-action@v3
2424
with:
25-
version: latest
25+
version: v1.54.0
26+
args: --timeout=5m
2627

2728
tests:
2829
runs-on: ubuntu-latest
2930
steps:
30-
- uses: actions/setup-go@v3
31+
- uses: actions/setup-go@v4
3132
with:
32-
go-version: ^1.20
33+
go-version: ^1.21
3334
- uses: actions/checkout@v3
3435
- run: go test -coverprofile=coverage.out ./...
3536
- uses: shogo82148/actions-goveralls@v1

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ linters:
1818
- asciicheck
1919
- bidichk
2020
- bodyclose
21-
- depguard
2221
- dogsled
2322
- dupl
2423
- durationcheck
@@ -53,6 +52,7 @@ linters:
5352
- lll
5453
- makezero
5554
- misspell
55+
- mirror
5656
- nakedret
5757
- nilerr
5858
- nilnil

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ tasks:
1515

1616
tools:install:
1717
- echo "Install local tools..."
18-
- (which gci > /dev/null) || GO111MODULE=off go install github.com/daixiang0/gci@latest
19-
- (which gofumpt > /dev/null) || GO111MODULE=off go install mvdan.cc/gofumpt@latest
18+
- (which gci > /dev/null) || go install github.com/daixiang0/gci@latest
19+
- (which gofumpt > /dev/null) || go install mvdan.cc/gofumpt@latest
2020

2121
tidy:
2222
cmds:

go.mod

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

3-
go 1.20
3+
go 1.21
44

55
require (
66
golang.org/x/sys v0.11.0 // indirect

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc=
22
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
33
golang.org/x/sync v0.3.0 h1:ftCYgMx6zT/asHUrPw8BLLscYtGznsLAnjq5RH9P66E=
4+
golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
45
golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
56
golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
67
golang.org/x/tools v0.12.0 h1:YW6HUoUmYBpwSgyaGaZq1fHjrBjX1rlpZ54T6mu2kss=

0 commit comments

Comments
 (0)