diff --git a/GNUmakefile b/GNUmakefile index 9a8a98833..97282593f 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -38,7 +38,7 @@ fmtcheck: lint: @echo "==> Checking source code against linters..." - golangci-lint run ./... + @if command -v golangci-lint; then (golangci-lint run ./...); else ($(GOPATH)/bin/golangci-lint run ./...); fi test: fmtcheck go test -tags "all" -i $(UNITTEST) || exit 1