diff --git a/Makefile b/Makefile index 9d716d2..986d9ea 100644 --- a/Makefile +++ b/Makefile @@ -95,8 +95,9 @@ 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 + staticcheck --version @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