Skip to content

Commit 5ac8847

Browse files
Upgrade go to 1.18
1 parent 03e3fa2 commit 5ac8847

4 files changed

Lines changed: 20 additions & 9 deletions

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
- name: golangci-lint
1111
uses: golangci/golangci-lint-action@v2.3.0
1212
with:
13-
version: v1.34
13+
version: v1.45.2
1414
args: --timeout=2m
1515
working-directory: rest
1616
- name: golangci-lint
1717
uses: golangci/golangci-lint-action@v2.3.0
1818
with:
19-
version: v1.34
19+
version: v1.45.2
2020
args: --timeout=2m
2121
working-directory: websocket
2222
test:
@@ -25,7 +25,7 @@ jobs:
2525
- name: install Go
2626
uses: actions/setup-go@v2
2727
with:
28-
go-version: 1.15.x
28+
go-version: 1.18.x
2929
- name: checkout code
3030
uses: actions/checkout@v2
3131
- uses: actions/cache@v2

.golangci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
linters:
22
enable:
3-
- bodyclose
43
- goconst
54
- gocritic
65
- gofmt
7-
- interfacer
8-
- maligned
6+
- govet
97
- prealloc
108
- unconvert
11-
- unparam
9+
- deadcode
10+
- varcheck
11+
- errcheck
12+
- ineffassign
13+
- containedctx
14+
- tenv

rest/go.mod

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
module github.com/aopoltorzhicky/go_kraken/rest
22

3-
go 1.16
3+
go 1.18
44

55
require (
66
github.com/pkg/errors v0.9.1
77
github.com/shopspring/decimal v1.2.0
88
github.com/stretchr/testify v1.7.0
99
)
10+
11+
require (
12+
github.com/davecgh/go-spew v1.1.0 // indirect
13+
github.com/pmezard/go-difflib v1.0.0 // indirect
14+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
15+
)

websocket/go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
module github.com/aopoltorzhicky/go_kraken/websocket
22

3-
go 1.16
3+
go 1.18
44

55
require (
66
github.com/aopoltorzhicky/go_kraken/rest v0.0.3
77
github.com/gorilla/websocket v1.4.1
88
github.com/pkg/errors v0.9.1
99
github.com/sirupsen/logrus v1.8.1
1010
)
11+
12+
require golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 // indirect

0 commit comments

Comments
 (0)