We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7831a88 commit 9e794baCopy full SHA for 9e794ba
Makefile
@@ -7,6 +7,11 @@ build:
7
install: build
8
install bin/kubectl-operator $(shell go env GOPATH)/bin
9
10
+GOLANGCI_LINT_VER = "1.29.0"
11
lint:
- scripts/golangci-lint-check.sh
12
- golangci-lint --timeout 3m run
+# scripts/golangci-lint-check.sh
13
+ifneq (${GOLANGCI_LINT_VER}, "$(shell ./bin/golangci-lint --version 2>/dev/null | cut -b 27-32)")
14
+ @echo "golangci-lint missing or not version '${GOLANGCI_LINT_VER}', downloading..."
15
+ curl -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/v${GOLANGCI_LINT_VER}/install.sh" | sh -s -- -b ./bin "v${GOLANGCI_LINT_VER}"
16
+endif
17
+ ./bin/golangci-lint --timeout 3m run
scripts/golangci-lint-check.sh
0 commit comments