circleci: upgrade golangci linter version

The old one isn't able to properly work with go > 1.15. However, the updated
version doesn't work with go 1.18, see https://github.com/golangci/golangci-lint/issues/2649.
So let's keep go1_17 runner with the latest golangci by now.
This commit is contained in:
AnnaShaleva 2022-03-17 13:33:52 +03:00
parent e8d15b1b7e
commit d2bc4473ce

View file

@ -28,14 +28,15 @@ commands:
jobs: jobs:
lint: lint:
working_directory: /home/circleci/go/src/github.com/nspcc-dev/neo-go working_directory: /home/circleci/go/src/github.com/nspcc-dev/neo-go
executor: go1_18 # TODO: temp workaround, need to upgrade to go1_18 after https://github.com/golangci/golangci-lint/issues/2649 is resolved.
executor: go1_17
steps: steps:
- checkout - checkout
- gomod - gomod
- run: - run:
name: go-lint name: go-lint
command: | command: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.42.1 curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.2
make lint make lint
test_1_16: test_1_16: