Point to golangi-lint install docs when not found on PATH

This commit is contained in:
Tom Fleet 2022-10-18 20:47:53 +01:00
parent 2e8acadde1
commit b8a3344870
No known key found for this signature in database
GPG key ID: D36A7A0B5D5AAA95

View file

@ -1,9 +1,8 @@
BIN="./bin"
SRC=$(shell find . -name "*.go")
GOPATH=$(shell go env GOPATH)
ifeq (, $(shell which golangci-lint))
$(warning "could not find golangci-lint in PATH, run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.50.0")
$(warning "could not find golangci-lint in PATH, see here for installation details: https://golangci-lint.run/usage/install/")
endif
ifeq (, $(shell which richgo))