Skip to content

Commit acce07d

Browse files
committed
Update golang.org/x/tools, go toolchain, golangci-lint, goreleaser
1 parent 7166f61 commit acce07d

File tree

7 files changed

+24
-18
lines changed

7 files changed

+24
-18
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
name: ci
1414
runs-on: ubuntu-latest
1515
env:
16-
GO_VERSION: "1.20"
17-
GOLANGCI_LINT_VERSION: v1.52.2
16+
GO_VERSION: "stable"
17+
GOLANGCI_LINT_VERSION: v1.61.0
1818
CGO_ENABLED: 0
1919

2020
steps:

.github/workflows/deps.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v3
16-
- uses: actions/setup-go@v3
16+
- uses: actions/setup-go@v4
1717
with:
18-
go-version: "1.20"
18+
go-version: "stable"
1919
- uses: actions/go-dependency-submission@v1
2020
with:
2121
go-mod-path: go.mod

.github/workflows/go-cross.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
go-version: [ "1.20", "1.21", "1.x" ]
20+
go-version: [ "stable", "oldstable", "1.x" ]
2121
os: [ubuntu-latest, macos-latest, windows-latest]
2222

2323
steps:

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818

1919
-
2020
name: Set up Go
21-
uses: actions/setup-go@v3
21+
uses: actions/setup-go@v4
2222
with:
23-
go-version: "1.20"
23+
go-version: "stable"
2424

2525
-
2626
name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@v4
27+
uses: goreleaser/goreleaser-action@v6
2828
with:
2929
distribution: goreleaser
30-
version: latest
30+
version: "~> v2"
3131
args: release --clean
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
version: 2
3+
14
# This is an example .goreleaser.yml file with some sane defaults.
25
# Make sure to check the documentation at http://goreleaser.com
36
before:
@@ -23,9 +26,9 @@ archives:
2326
{{- else }}{{ .Arch }}{{ end }}
2427
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2528
snapshot:
26-
name_template: "{{ .Tag }}-next"
29+
version_template: "{{ .Tag }}-next"
2730
changelog:
28-
skip: true
31+
disable: true
2932
release:
3033
github:
3134
owner: breml

go.mod

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
module github.com/breml/errchkjson
22

3-
go 1.20
3+
go 1.22.0
44

5-
require golang.org/x/tools v0.24.0
5+
toolchain go1.22.6
6+
7+
require golang.org/x/tools v0.25.0
68

79
require (
8-
golang.org/x/mod v0.20.0 // indirect
10+
golang.org/x/mod v0.21.0 // indirect
911
golang.org/x/sync v0.8.0 // indirect
1012
)

go.sum

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
2-
golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0=
3-
golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
2+
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
3+
golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0=
4+
golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
45
golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
56
golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
6-
golang.org/x/tools v0.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24=
7-
golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ=
7+
golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE=
8+
golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg=

0 commit comments

Comments
 (0)