summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-03-30 19:52:45 +0100
committerGitHub <noreply@github.com>2020-03-30 21:52:45 +0300
commitbf847b9397b0365a81d1a2ca5386a6c4280d9e94 (patch)
treea902635a79aeb9442381d9d9741095b15a9e8721 /Makefile
parent972b3bf3b0b772dd919333375356ae56e469ebea (diff)
downloadgitea-bf847b9397b0365a81d1a2ca5386a6c4280d9e94.tar.gz
gitea-bf847b9397b0365a81d1a2ca5386a6c4280d9e94.zip
Upgrade golangci-lint to 1.24.0 (#10894)
* upgrade golangci-lint to 1.24.0 to allow go 1.14 compatibility * fix golangci-lint errors * make make golangci-lint work when out of go-path Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 745cdb2601..f34658d570 100644
--- a/Makefile
+++ b/Makefile
@@ -621,6 +621,6 @@ pr\#%: clean-all
golangci-lint:
@hash golangci-lint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
export BINARY="golangci-lint"; \
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.20.0; \
+ curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(GOPATH)/bin v1.24.0; \
fi
- golangci-lint run --timeout 5m
+ env GO111MODULE=on golangci-lint run --timeout 5m