Install lint in a local directory

This commit is contained in:
9seconds
2020-08-10 15:01:38 +03:00
parent 5fd7062972
commit 3acbacbdb3
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -9,3 +9,4 @@ mtg
vendor/ vendor/
version.go version.go
ccbuilds/ ccbuilds/
.bin/
+4 -3
View File
@@ -53,7 +53,7 @@ crosscompile-dir:
.PHONY: lint .PHONY: lint
lint: vendor lint: vendor
@$(MOD_OFF) golangci-lint run @$(MOD_OFF) "$(ROOT_DIR)/.bin/golangci-lint" run
.PHONY: clean .PHONY: clean
clean: clean:
@@ -70,5 +70,6 @@ prepare: install-lint
.PHONY: install-lint .PHONY: install-lint
install-lint: install-lint:
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh \ @mkdir -p ./bin || true && \
| $(MOD_OFF) bash -s -- -b . $(GOLANGCI_LINT_VERSION) curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh \
| $(MOD_OFF) bash -s -- -b "$(ROOT_DIR)/.bin" $(GOLANGCI_LINT_VERSION)