Last active
July 9, 2022 16:47
-
-
Save liampulles/0cbc6042aa79752ca075c25278e552f7 to your computer and use it in GitHub Desktop.
Makefile tool check and install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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