build: pin golangci-lint version

To prevent builds breaking when golangci-lint or any of the linters is
updated.
This commit is contained in:
Joost Jager 2019-09-13 10:50:34 +02:00
parent ffb8c0cfc3
commit 1216dc6a5b
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

View File

@ -4,7 +4,7 @@ MOBILE_PKG := $(PKG)/mobile
BTCD_PKG := github.com/btcsuite/btcd
GOVERALLS_PKG := github.com/mattn/goveralls
LINT_PKG := github.com/golangci/golangci-lint/cmd/golangci-lint
LINT_PKG := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.18.0
GOACC_PKG := github.com/ory/go-acc
GO_BIN := ${GOPATH}/bin
@ -71,7 +71,10 @@ $(GOVERALLS_BIN):
$(LINT_BIN):
@$(call print, "Fetching linter")
GO111MODULE=off go get -u $(LINT_PKG)
# Switch to tmp directory to prevent lnd go.mod from being modified.
# Hopefully someday a flag for go get will be added for this.
cd /tmp
GO111MODULE=on go get $(LINT_PKG)
$(GOACC_BIN):
@$(call print, "Fetching go-acc")