Skip to content

Commit 4e45eea

Browse files
authored
Upgrade to Go 1.23 (#333)
1 parent 578853f commit 4e45eea

File tree

9 files changed

+82
-116
lines changed

9 files changed

+82
-116
lines changed

.github/workflows/go.yaml

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Setup Go env
16-
uses: actions/setup-go@v4
16+
uses: actions/setup-go@v5
1717
with:
18-
go-version: "^1.22.0"
18+
go-version: "^1.23.0"
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 2
2323
- name: Verify Go dependencies
2424
run: go mod verify
2525
- name: Run unit tests
2626
run: go test -v ./...
2727
- name: Goreleaser check
28-
uses: goreleaser/goreleaser-action@v4
28+
uses: goreleaser/goreleaser-action@v6
2929
with:
3030
distribution: goreleaser
3131
version: latest
@@ -34,18 +34,18 @@ jobs:
3434
runs-on: ubuntu-latest
3535
steps:
3636
- name: Setup Go env
37-
uses: actions/setup-go@v4
37+
uses: actions/setup-go@v5
3838
with:
39-
go-version: "^1.22.0"
39+
go-version: "^1.23.0"
4040
cache: false
4141
- name: Checkout
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343
with:
4444
fetch-depth: 0
4545
- name: Run golangci-lint
46-
uses: golangci/golangci-lint-action@v3
46+
uses: golangci/golangci-lint-action@v6
4747
with:
48-
version: v1.55
48+
version: v1.60.3
4949
args: -v --timeout=5m
5050
only-new-issues: false
5151
install-mode: "binary"

.github/workflows/mysql.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Setup Go env
17-
uses: actions/setup-go@v4
17+
uses: actions/setup-go@v5
1818
with:
19-
go-version: "^1.22.0"
19+
go-version: "^1.23.0"
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 2
2424
- name: Build binary
@@ -66,7 +66,7 @@ jobs:
6666
run: echo 'y' | migrate -path ./migrations/datastore/mysql/ -database mysql://root:root@/warrant down
6767
- name: Archive server log
6868
if: failure()
69-
uses: actions/upload-artifact@v3
69+
uses: actions/upload-artifact@v4
7070
with:
7171
name: server-log
7272
path: server.log

.github/workflows/postgres.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Setup Go env
17-
uses: actions/setup-go@v4
17+
uses: actions/setup-go@v5
1818
with:
19-
go-version: "^1.22.0"
19+
go-version: "^1.23.0"
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 2
2424
- name: Build binary
@@ -71,7 +71,7 @@ jobs:
7171
run: echo 'y' | migrate -path ./migrations/datastore/postgres/ -database postgres://warrant_user:db_password@/warrant?sslmode=disable down
7272
- name: Archive server log
7373
if: failure()
74-
uses: actions/upload-artifact@v3
74+
uses: actions/upload-artifact@v4
7575
with:
7676
name: server-log
7777
path: server.log

.github/workflows/release.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Set up QEMU
12-
uses: docker/setup-qemu-action@v2
12+
uses: docker/setup-qemu-action@v3
1313
with:
1414
platforms: amd64,arm64
1515
- name: Setup Go env
16-
uses: actions/setup-go@v4
16+
uses: actions/setup-go@v5
1717
with:
18-
go-version: "^1.22.0"
18+
go-version: "^1.23.0"
1919
- name: Docker login
20-
uses: docker/login-action@v2
20+
uses: docker/login-action@v3
2121
with:
2222
username: ${{ secrets.DOCKER_USER }}
2323
password: ${{ secrets.DOCKER_TOKEN }}
2424
- name: Checkout
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with:
2727
fetch-depth: 0
2828
- name: Release with Goreleaser
29-
uses: goreleaser/goreleaser-action@v4
29+
uses: goreleaser/goreleaser-action@v6
3030
with:
3131
distribution: goreleaser
3232
version: latest

.github/workflows/sqlite.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Setup Go env
17-
uses: actions/setup-go@v4
17+
uses: actions/setup-go@v5
1818
with:
19-
go-version: "^1.22.0"
19+
go-version: "^1.23.0"
2020
- name: Checkout
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222
with:
2323
fetch-depth: 2
2424
- name: Build binary
@@ -55,7 +55,7 @@ jobs:
5555
run: kill -9 `lsof -i:8000 -t`
5656
- name: Archive server log
5757
if: failure()
58-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5959
with:
6060
name: server-log
6161
path: server.log

.golangci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ linters-settings:
8989
maintidx:
9090
under: 10
9191
issues:
92-
new-from-rev: 3f04848d5a946826ab51f00361d6793761ca6616
92+
new-from-rev: 578853fe0dd71f4b624746915d27a1eae57c2397
9393
max-issues-per-linter: 0
9494
max-same-issues: 0

.goreleaser.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
before:
23
hooks:
34
# - go mod tidy
@@ -32,7 +33,7 @@ archives:
3233
checksum:
3334
name_template: 'checksums.txt'
3435
snapshot:
35-
name_template: "{{ incpatch .Version }}-next"
36+
version_template: "{{ incpatch .Version }}-next"
3637
changelog:
3738
sort: asc
3839
filters:

go.mod

+16-19
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/warrant-dev/warrant
22

3-
go 1.22
3+
go 1.23
44

55
require (
66
github.com/alecthomas/participle/v2 v2.1.1
@@ -12,7 +12,7 @@ require (
1212
github.com/google/uuid v1.6.0
1313
github.com/gorilla/mux v1.8.1
1414
github.com/jmoiron/sqlx v1.4.0
15-
github.com/mattn/go-sqlite3 v1.14.22
15+
github.com/mattn/go-sqlite3 v1.14.23
1616
github.com/pkg/errors v0.9.1
1717
github.com/rs/zerolog v1.33.0
1818
github.com/spf13/viper v1.19.0
@@ -21,11 +21,10 @@ require (
2121
require (
2222
filippo.io/edwards25519 v1.1.0 // indirect
2323
github.com/fsnotify/fsnotify v1.7.0 // indirect
24-
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
24+
github.com/gabriel-vasile/mimetype v1.4.5 // indirect
2525
github.com/go-playground/locales v0.14.1 // indirect
2626
github.com/go-playground/universal-translator v0.18.1 // indirect
2727
github.com/go-sql-driver/mysql v1.8.1 // indirect
28-
github.com/golang/protobuf v1.5.3 // indirect
2928
github.com/google/go-github/v39 v39.2.0 // indirect
3029
github.com/google/go-querystring v1.1.0 // indirect
3130
github.com/hashicorp/errwrap v1.1.0 // indirect
@@ -35,27 +34,25 @@ require (
3534
github.com/lib/pq v1.10.9 // indirect
3635
github.com/magiconair/properties v1.8.7 // indirect
3736
github.com/mattn/go-colorable v0.1.13 // indirect
38-
github.com/mattn/go-isatty v0.0.19 // indirect
37+
github.com/mattn/go-isatty v0.0.20 // indirect
3938
github.com/mitchellh/mapstructure v1.5.0 // indirect
40-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
41-
github.com/rs/xid v1.5.0 // indirect
42-
github.com/sagikazarmark/locafero v0.4.0 // indirect
39+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
40+
github.com/rs/xid v1.6.0 // indirect
41+
github.com/sagikazarmark/locafero v0.6.0 // indirect
4342
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
4443
github.com/sourcegraph/conc v0.3.0 // indirect
4544
github.com/spf13/afero v1.11.0 // indirect
46-
github.com/spf13/cast v1.6.0 // indirect
45+
github.com/spf13/cast v1.7.0 // indirect
4746
github.com/spf13/pflag v1.0.5 // indirect
4847
github.com/subosito/gotenv v1.6.0 // indirect
49-
go.uber.org/atomic v1.9.0 // indirect
50-
go.uber.org/multierr v1.9.0 // indirect
51-
golang.org/x/crypto v0.21.0 // indirect
52-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
53-
golang.org/x/net v0.23.0 // indirect
54-
golang.org/x/oauth2 v0.18.0 // indirect
55-
golang.org/x/sys v0.18.0 // indirect
56-
golang.org/x/text v0.14.0 // indirect
57-
google.golang.org/appengine v1.6.8 // indirect
58-
google.golang.org/protobuf v1.33.0 // indirect
48+
go.uber.org/atomic v1.11.0 // indirect
49+
go.uber.org/multierr v1.11.0 // indirect
50+
golang.org/x/crypto v0.26.0 // indirect
51+
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 // indirect
52+
golang.org/x/net v0.28.0 // indirect
53+
golang.org/x/oauth2 v0.23.0 // indirect
54+
golang.org/x/sys v0.25.0 // indirect
55+
golang.org/x/text v0.18.0 // indirect
5956
gopkg.in/ini.v1 v1.67.0 // indirect
6057
gopkg.in/yaml.v3 v3.0.1 // indirect
6158
)

0 commit comments

Comments
 (0)