mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 09:54:01 +03:00
Install lint in a local directory
This commit is contained in:
@@ -9,3 +9,4 @@ mtg
|
||||
vendor/
|
||||
version.go
|
||||
ccbuilds/
|
||||
.bin/
|
||||
|
||||
@@ -53,7 +53,7 @@ crosscompile-dir:
|
||||
|
||||
.PHONY: lint
|
||||
lint: vendor
|
||||
@$(MOD_OFF) golangci-lint run
|
||||
@$(MOD_OFF) "$(ROOT_DIR)/.bin/golangci-lint" run
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
@@ -70,5 +70,6 @@ prepare: install-lint
|
||||
|
||||
.PHONY: install-lint
|
||||
install-lint:
|
||||
@curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh \
|
||||
| $(MOD_OFF) bash -s -- -b . $(GOLANGCI_LINT_VERSION)
|
||||
@mkdir -p ./bin || true && \
|
||||
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