From 5ac8847728c9156bc9596688543861156601f2c2 Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 13 Apr 2022 18:59:20 +0300 Subject: [PATCH] Upgrade go to 1.18 --- .github/workflows/tests.yml | 6 +++--- .golangci.yml | 11 +++++++---- rest/go.mod | 8 +++++++- websocket/go.mod | 4 +++- 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b487189..0f98241 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,13 +10,13 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v2.3.0 with: - version: v1.34 + version: v1.45.2 args: --timeout=2m working-directory: rest - name: golangci-lint uses: golangci/golangci-lint-action@v2.3.0 with: - version: v1.34 + version: v1.45.2 args: --timeout=2m working-directory: websocket test: @@ -25,7 +25,7 @@ jobs: - name: install Go uses: actions/setup-go@v2 with: - go-version: 1.15.x + go-version: 1.18.x - name: checkout code uses: actions/checkout@v2 - uses: actions/cache@v2 diff --git a/.golangci.yml b/.golangci.yml index 462df10..9fa4990 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,11 +1,14 @@ linters: enable: - - bodyclose - goconst - gocritic - gofmt - - interfacer - - maligned + - govet - prealloc - unconvert - - unparam \ No newline at end of file + - deadcode + - varcheck + - errcheck + - ineffassign + - containedctx + - tenv \ No newline at end of file diff --git a/rest/go.mod b/rest/go.mod index 6bff41d..f8076a7 100644 --- a/rest/go.mod +++ b/rest/go.mod @@ -1,9 +1,15 @@ module github.com/aopoltorzhicky/go_kraken/rest -go 1.16 +go 1.18 require ( github.com/pkg/errors v0.9.1 github.com/shopspring/decimal v1.2.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/davecgh/go-spew v1.1.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect +) diff --git a/websocket/go.mod b/websocket/go.mod index 8c324ac..7585558 100644 --- a/websocket/go.mod +++ b/websocket/go.mod @@ -1,6 +1,6 @@ module github.com/aopoltorzhicky/go_kraken/websocket -go 1.16 +go 1.18 require ( github.com/aopoltorzhicky/go_kraken/rest v0.0.3 @@ -8,3 +8,5 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.8.1 ) + +require golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 // indirect