diff --git a/Makefile b/Makefile index 8a9c57e9..eb7e7931 100644 --- a/Makefile +++ b/Makefile @@ -111,8 +111,8 @@ lintinstall: @export PATH="${PATH}:$(go env GOPATH)/bin" - @echo "Explicitly enabling Go modules mode per command" - (cd; GO111MODULE="on" go get honnef.co/go/tools/cmd/staticcheck) + @echo "Installing latest stable staticcheck version via go install command ..." + @go install honnef.co/go/tools/cmd/staticcheck@latest @echo Installing latest stable golangci-lint version per official installation script ... curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin