mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:04:02 +03:00
Install lint in a local directory
This commit is contained in:
@@ -9,3 +9,4 @@ mtg
|
|||||||
vendor/
|
vendor/
|
||||||
version.go
|
version.go
|
||||||
ccbuilds/
|
ccbuilds/
|
||||||
|
.bin/
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user