We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88cfebe commit 979f885Copy full SHA for 979f885
1 file changed
scripts/build/linting.mk
@@ -1,4 +1,5 @@
1
golangci_version=v1.60.1
2
+golangci_installed_version=$(shell golangci-lint version --format short 2>/dev/null)
3
4
#? setup-pre-commit: Set pre-commit git hook
5
setup-pre-commit:
@@ -9,8 +10,10 @@ setup-pre-commit:
9
10
11
#? lint-install: Install golangci-lint
12
lint-install:
13
+ifneq ($(golangci_installed_version),$(golangci_version))
14
@echo "--> Installing golangci-lint $(golangci_version)"
15
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golangci_version)
16
+endif
17
18
#? lint: Run golangci-lint
19
lint:
0 commit comments