Skip to content

Commit

Permalink
upgrade to golang 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsv committed Dec 9, 2024
1 parent 0cfa3ac commit 37ad9b7
Show file tree
Hide file tree
Showing 11 changed files with 123 additions and 120 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go_dvoting_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
name: Scenario
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
- name: Use Go 1.23
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.23'

- name: Install crypto util from Dela
run: |
Expand All @@ -24,7 +24,7 @@ jobs:
go install ./cli/crypto
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Create a private key
run: crypto bls signer new --save private.key
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/go_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,44 @@ on:

jobs:
integration:
name: Integration test
name: Integration tests
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
- name: Use Go 1.23
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.23'

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

- name: Run the integration test
run: go test -timeout 10m -run TestIntegration ./integration/...
bad_vote:
name: Test bad vote
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
- name: Use Go 1.23
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.23'

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

- name: Run the bad vote test
run: go test -timeout 10m -run TestBadVote ./integration/...
crash:
name: Test crash
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
- name: Use Go 1.23
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.23'

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

- name: Run the crash test
run: |
Expand All @@ -58,13 +58,13 @@ jobs:
name: Test revote
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
- name: Use Go 1.23
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.23'

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

- name: Run the revote test
run: go test -timeout 10m -run TestRevote ./integration/...
6 changes: 3 additions & 3 deletions .github/workflows/go_scenario_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
- name: Use Go 1.23
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.23'

- name: Install crypto util from Dela
run: |
Expand All @@ -23,7 +23,7 @@ jobs:
go install ./cli/crypto
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Create a private key
run: crypto bls signer new --save private.key
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
- name: Use Go 1.23
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.23'
id: go

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

# TODO: https://github.com/dedis/d-voting/issues/392
# - name: Run lint
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Use Go 1.20
- name: Use Go 1.23
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.23'

- name: Install fpm
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/web_backend_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
working-directory: ./web/backend

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/web_frontend_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
working-directory: ./web/frontend

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'

Expand Down
57 changes: 30 additions & 27 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,52 +1,55 @@
module github.com/dedis/d-voting

go 1.21
go 1.23

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

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.5 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/opentracing-contrib/go-grpc v0.0.0-20210225150812-73cb765af46e // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/opentracing-contrib/go-grpc v0.1.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/rs/xid v1.5.0 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.60.1 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/rs/xid v1.6.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
github.com/urfave/cli/v2 v2.27.1 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
github.com/urfave/cli/v2 v2.27.5 // indirect
github.com/xrash/smetrics v0.0.0-20240521201337-686a1a2994c1 // indirect
go.dedis.ch/fixbuf v1.0.3 // indirect
go.dedis.ch/protobuf v1.0.11 // indirect
go.etcd.io/bbolt v1.3.9 // indirect
go.etcd.io/bbolt v1.3.11 // indirect
go.uber.org/atomic v1.11.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect
google.golang.org/grpc v1.63.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
golang.org/x/crypto v0.29.0 // indirect
golang.org/x/mod v0.22.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.27.0 // indirect
golang.org/x/text v0.20.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241202173237-19429a94021a // indirect
google.golang.org/grpc v1.68.0 // indirect
google.golang.org/protobuf v1.35.2 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 37ad9b7

Please sign in to comment.