Skip to content

Commit 37ad9b7

Browse files
committed
upgrade to golang 1.23
1 parent 0cfa3ac commit 37ad9b7

11 files changed

+123
-120
lines changed

.github/workflows/go_dvoting_test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
name: Scenario
1313
runs-on: ubuntu-latest
1414
steps:
15-
- name: Use Go 1.20
15+
- name: Use Go 1.23
1616
uses: actions/setup-go@v4
1717
with:
18-
go-version: '1.20'
18+
go-version: '1.23'
1919

2020
- name: Install crypto util from Dela
2121
run: |
@@ -24,7 +24,7 @@ jobs:
2424
go install ./cli/crypto
2525
2626
- name: Check out code into the Go module directory
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828

2929
- name: Create a private key
3030
run: crypto bls signer new --save private.key

.github/workflows/go_integration_tests.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,44 @@ on:
88

99
jobs:
1010
integration:
11-
name: Integration test
11+
name: Integration tests
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Use Go 1.20
14+
- name: Use Go 1.23
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: '1.20'
17+
go-version: '1.23'
1818

1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121

2222
- name: Run the integration test
2323
run: go test -timeout 10m -run TestIntegration ./integration/...
2424
bad_vote:
2525
name: Test bad vote
2626
runs-on: ubuntu-latest
2727
steps:
28-
- name: Use Go 1.20
28+
- name: Use Go 1.23
2929
uses: actions/setup-go@v4
3030
with:
31-
go-version: '1.20'
31+
go-version: '1.23'
3232

3333
- name: Check out code into the Go module directory
34-
uses: actions/checkout@v2
34+
uses: actions/checkout@v4
3535

3636
- name: Run the bad vote test
3737
run: go test -timeout 10m -run TestBadVote ./integration/...
3838
crash:
3939
name: Test crash
4040
runs-on: ubuntu-latest
4141
steps:
42-
- name: Use Go 1.20
42+
- name: Use Go 1.23
4343
uses: actions/setup-go@v4
4444
with:
45-
go-version: '1.20'
45+
go-version: '1.23'
4646

4747
- name: Check out code into the Go module directory
48-
uses: actions/checkout@v2
48+
uses: actions/checkout@v4
4949

5050
- name: Run the crash test
5151
run: |
@@ -58,13 +58,13 @@ jobs:
5858
name: Test revote
5959
runs-on: ubuntu-latest
6060
steps:
61-
- name: Use Go 1.20
61+
- name: Use Go 1.23
6262
uses: actions/setup-go@v4
6363
with:
64-
go-version: '1.20'
64+
go-version: '1.23'
6565

6666
- name: Check out code into the Go module directory
67-
uses: actions/checkout@v2
67+
uses: actions/checkout@v4
6868

6969
- name: Run the revote test
7070
run: go test -timeout 10m -run TestRevote ./integration/...

.github/workflows/go_scenario_test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
name: Tests
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Use Go 1.20
14+
- name: Use Go 1.23
1515
uses: actions/setup-go@v4
1616
with:
17-
go-version: '1.20'
17+
go-version: '1.23'
1818

1919
- name: Install crypto util from Dela
2020
run: |
@@ -23,7 +23,7 @@ jobs:
2323
go install ./cli/crypto
2424
2525
- name: Check out code into the Go module directory
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2727

2828
- name: Create a private key
2929
run: crypto bls signer new --save private.key

.github/workflows/go_test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
name: Tests
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Use Go 1.20
13+
- name: Use Go 1.23
1414
uses: actions/setup-go@v4
1515
with:
16-
go-version: '1.20'
16+
go-version: '1.23'
1717
id: go
1818

1919
- name: Check out code into the Go module directory
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
# TODO: https://github.com/dedis/d-voting/issues/392
2323
# - name: Run lint

.github/workflows/releases.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111

1212
steps:
1313
- name: checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

16-
- name: Use Go 1.20
16+
- name: Use Go 1.23
1717
uses: actions/setup-go@v4
1818
with:
19-
go-version: '1.20'
19+
go-version: '1.23'
2020

2121
- name: Install fpm
2222
run: |

.github/workflows/web_backend_lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
working-directory: ./web/backend
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-node@v3
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
2020
with:
2121
node-version: '16'
2222

.github/workflows/web_frontend_lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
working-directory: ./web/frontend
1616

1717
steps:
18-
- uses: actions/checkout@v3
19-
- uses: actions/setup-node@v3
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
2020
with:
2121
node-version: '16'
2222

go.mod

+30-27
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,55 @@
11
module github.com/dedis/d-voting
22

3-
go 1.21
3+
go 1.23
44

55
require (
6-
github.com/gorilla/mux v1.8.0
6+
github.com/gorilla/mux v1.8.1
77
github.com/opentracing/opentracing-go v1.2.0
8-
github.com/prometheus/client_golang v1.19.0
9-
github.com/rs/zerolog v1.32.0
10-
github.com/stretchr/testify v1.9.0
8+
github.com/prometheus/client_golang v1.20.5
9+
github.com/rs/zerolog v1.33.0
10+
github.com/stretchr/testify v1.10.0
1111
github.com/uber/jaeger-client-go v2.30.0+incompatible
1212
go.dedis.ch/dela v0.1.1-0.20240924124343-79fc1d79d180
1313
go.dedis.ch/dela-apps v0.0.0-20211201124511-8d285ec1fa45
1414
go.dedis.ch/kyber/v3 v3.1.0
15-
golang.org/x/net v0.24.0
16-
golang.org/x/tools v0.20.0
17-
golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028
15+
golang.org/x/net v0.31.0
16+
golang.org/x/tools v0.27.0
17+
golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
1818
)
1919

2020
require (
2121
github.com/beorn7/perks v1.0.1 // indirect
22-
github.com/cespare/xxhash/v2 v2.2.0 // indirect
23-
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
22+
github.com/cespare/xxhash/v2 v2.3.0 // indirect
23+
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
2424
github.com/davecgh/go-spew v1.1.1 // indirect
2525
github.com/golang/protobuf v1.5.4 // indirect
26+
github.com/klauspost/compress v1.17.11 // indirect
27+
github.com/kylelemons/godebug v1.1.0 // indirect
2628
github.com/mattn/go-colorable v0.1.13 // indirect
27-
github.com/mattn/go-isatty v0.0.19 // indirect
28-
github.com/opentracing-contrib/go-grpc v0.0.0-20210225150812-73cb765af46e // indirect
29+
github.com/mattn/go-isatty v0.0.20 // indirect
30+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
31+
github.com/opentracing-contrib/go-grpc v0.1.0 // indirect
2932
github.com/pkg/errors v0.9.1 // indirect
3033
github.com/pmezard/go-difflib v1.0.0 // indirect
31-
github.com/prometheus/client_model v0.5.0 // indirect
32-
github.com/prometheus/common v0.48.0 // indirect
33-
github.com/prometheus/procfs v0.12.0 // indirect
34-
github.com/rs/xid v1.5.0 // indirect
34+
github.com/prometheus/client_model v0.6.1 // indirect
35+
github.com/prometheus/common v0.60.1 // indirect
36+
github.com/prometheus/procfs v0.15.1 // indirect
37+
github.com/rs/xid v1.6.0 // indirect
3538
github.com/russross/blackfriday/v2 v2.1.0 // indirect
3639
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
37-
github.com/urfave/cli/v2 v2.27.1 // indirect
38-
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
40+
github.com/urfave/cli/v2 v2.27.5 // indirect
41+
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
3942
go.dedis.ch/fixbuf v1.0.3 // indirect
4043
go.dedis.ch/protobuf v1.0.11 // indirect
41-
go.etcd.io/bbolt v1.3.9 // indirect
44+
go.etcd.io/bbolt v1.3.11 // indirect
4245
go.uber.org/atomic v1.11.0 // indirect
43-
golang.org/x/crypto v0.22.0 // indirect
44-
golang.org/x/mod v0.17.0 // indirect
45-
golang.org/x/sync v0.7.0 // indirect
46-
golang.org/x/sys v0.19.0 // indirect
47-
golang.org/x/text v0.14.0 // indirect
48-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
49-
google.golang.org/grpc v1.63.0 // indirect
50-
google.golang.org/protobuf v1.33.0 // indirect
46+
golang.org/x/crypto v0.29.0 // indirect
47+
golang.org/x/mod v0.22.0 // indirect
48+
golang.org/x/sync v0.9.0 // indirect
49+
golang.org/x/sys v0.27.0 // indirect
50+
golang.org/x/text v0.20.0 // indirect
51+
google.golang.org/genproto/googleapis/rpc v0.0.0-20241202173237-19429a94021a // indirect
52+
google.golang.org/grpc v1.68.0 // indirect
53+
google.golang.org/protobuf v1.35.2 // indirect
5154
gopkg.in/yaml.v3 v3.0.1 // indirect
5255
)

0 commit comments

Comments
 (0)