Skip to content

Commit 2e2264a

Browse files
authored
Update to build with Go 1.22 (#17)
1 parent b7534ee commit 2e2264a

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/gofmt.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
name: Run gofmt
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Set up Go 1.20
17+
- name: Set up Go 1.22
1818
uses: actions/setup-go@v2
1919
with:
20-
go-version: '1.20'
20+
go-version: '1.22'
2121
id: go
2222

2323
- name: Check out code into the Go module directory
@@ -26,9 +26,9 @@ jobs:
2626
- uses: actions/cache@v2
2727
with:
2828
path: ~/go/pkg/mod
29-
key: ${{ runner.os }}-gofmt1.20-${{ hashFiles('**/go.sum') }}
29+
key: ${{ runner.os }}-gofmt1.22-${{ hashFiles('**/go.sum') }}
3030
restore-keys: |
31-
${{ runner.os }}-gofmt1.20-
31+
${{ runner.os }}-gofmt1.22-
3232
3333
- name: Install goimports
3434
run: |

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
name: Build and test on Ubuntu
1818
runs-on: ubuntu-latest
1919
steps:
20-
- name: Set up Go 1.20
20+
- name: Set up Go 1.22
2121
uses: actions/setup-go@v2
2222
with:
23-
go-version: '1.20'
23+
go-version: '1.22'
2424
id: go
2525

2626
- name: Check out code
@@ -29,9 +29,9 @@ jobs:
2929
- uses: actions/cache@v2
3030
with:
3131
path: ~/go/pkg/mod
32-
key: ${{ runner.os }}-go1.20-${{ hashFiles('**/go.sum') }}
32+
key: ${{ runner.os }}-go1.22-${{ hashFiles('**/go.sum') }}
3333
restore-keys: |
34-
${{ runner.os }}-go1.20-
34+
${{ runner.os }}-go1.22-
3535
3636
- name: Run unit tests
3737
run: make testvv

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/DefinedNet/dnapi
22

3-
go 1.20
3+
go 1.22
44

55
require (
66
github.com/sirupsen/logrus v1.9.2

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1818
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1919
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
2020
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
21+
github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
2122
github.com/sirupsen/logrus v1.9.2 h1:oxx1eChJGI6Uks2ZC4W1zpLlVgqB8ner4EuQwV4Ik1Y=
2223
github.com/sirupsen/logrus v1.9.2/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
2324
github.com/slackhq/nebula v1.7.1 h1:+kzPkx9rMXJKj43N7Zcdb+ZsHAX+/u2beS7qPHbWhdw=
@@ -33,6 +34,7 @@ github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o
3334
golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g=
3435
golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0=
3536
golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
37+
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
3638
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
3739
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
3840
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

0 commit comments

Comments
 (0)