Skip to content

Commit d4f4c01

Browse files
Upgrade Go toolchain to 1.24.0 and dependencies (#5)
* upgrade golang dependencies and toolchain * upgrade golangci-lint to v1.64.5 * remove golangci lint job from workflow * remove lint job dependency in build workflow * update upload-artifact action to v4 * update goreleaser action version and config
1 parent b61927d commit d4f4c01

File tree

3 files changed

+23
-25
lines changed

3 files changed

+23
-25
lines changed

.github/workflows/go.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,32 @@ on:
1111

1212
jobs:
1313

14-
lint:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- uses: actions/checkout@v3
18-
- name: golangci-lint
19-
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376
20-
with:
21-
version: v1.50.1
22-
2314
test:
2415
runs-on: ubuntu-latest
2516
steps:
2617
- uses: actions/checkout@v3
2718
- run: go test -v ./...
2819

2920
build-and-upload:
30-
needs: [lint, test]
21+
needs: [test]
3122
runs-on: ubuntu-latest
3223
steps:
3324
- uses: actions/checkout@v3
3425
- if: ${{ github.event_name != 'release' }}
35-
uses: goreleaser/goreleaser-action@8f67e590f2d095516493f017008adc464e63adb1
26+
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3
3627
with:
37-
args: release --rm-dist --snapshot
28+
# either 'goreleaser' (default) or 'goreleaser-pro'
29+
distribution: goreleaser
30+
# 'latest', 'nightly', or a semver
31+
version: '~> v2'
32+
args: release --clean --snapshot
3833
- if: ${{ github.event_name == 'release' }}
39-
uses: goreleaser/goreleaser-action@8f67e590f2d095516493f017008adc464e63adb1
34+
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3
4035
with:
4136
args: release --rm-dist
4237
env:
4338
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
- uses: actions/upload-artifact@v3
39+
- uses: actions/upload-artifact@v4
4540
with:
4641
name: binaries
4742
path: dist/*

go.mod

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
module 4d63.com/gocheckcompilerdirectives
22

3-
go 1.19
3+
go 1.22.0
44

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

79
require (
8-
golang.org/x/mod v0.7.0 // indirect
9-
golang.org/x/sys v0.4.0 // indirect
10+
golang.org/x/mod v0.23.0 // indirect
11+
golang.org/x/sys v0.30.0 // indirect
1012
)

go.sum

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
golang.org/x/mod v0.7.0 h1:LapD9S96VoQRhi/GrNTqeBJFrUjs5UHCAtTlgwA5oZA=
2-
golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
3-
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
4-
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
5-
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
6-
golang.org/x/tools v0.5.0 h1:+bSpV5HIeWkuvgaMfI3UmKRThoTA5ODJTUd8T17NO+4=
7-
golang.org/x/tools v0.5.0/go.mod h1:N+Kgy78s5I24c24dU8OfWNEotWjutIs8SnJvn5IDq+k=
1+
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
2+
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
3+
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=
5+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
6+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
7+
golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ=
8+
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=

0 commit comments

Comments
 (0)