From ba4db7fee92cd98d196715f6a5e02b4789d15818 Mon Sep 17 00:00:00 2001 From: zhujian Date: Fri, 25 Oct 2019 11:01:32 +0800 Subject: [PATCH] chore(*): update golangci-lint version from 1.16.0 to 1.20.1 --- .golangci.yml | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index b23af2d..3714ac5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ run: # concurrency: 2 - deadline: 5m + deadline: 10m linter-settings: goconst: diff --git a/Makefile b/Makefile index 6b42446..54c35e0 100644 --- a/Makefile +++ b/Makefile @@ -88,10 +88,10 @@ build: build-local # more info about `GOGC` env: https://github.com/golangci/golangci-lint#memory-usage-of-golangci-lint lint: $(GOLANGCI_LINT) - @GOGC=5 $(GOLANGCI_LINT) run + @$(GOLANGCI_LINT) run $(GOLANGCI_LINT): - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(BIN_DIR) v1.16.0 + curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(BIN_DIR) v1.20.1 test: @go test -p $(CPUS) $$(go list ./... | grep -v /vendor | grep -v /test) -coverprofile=coverage.out