Skip to content

Instantly share code, notes, and snippets.

@liampulles
Last active July 9, 2022 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liampulles/0cbc6042aa79752ca075c25278e552f7 to your computer and use it in GitHub Desktop.
Save liampulles/0cbc6042aa79752ca075c25278e552f7 to your computer and use it in GitHub Desktop.
Makefile tool check and install
GOBIN := $(shell go env GOPATH)/bin
inspect: $(GOBIN)/golangci-lint
$(GOBIN)/golangci-lint run
$(GOBIN)/golangci-lint:
$(MAKE) install-golangci-lint
install-golangci-lint:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOBIN) v1.46.2
rm -rf ./v1.46.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment