Skip to content

Commit 9e794ba

Browse files
committed
Keeping binaries within the project
Signed-off-by: Ken Sipe <[email protected]>
1 parent 7831a88 commit 9e794ba

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ build:
77
install: build
88
install bin/kubectl-operator $(shell go env GOPATH)/bin
99

10+
GOLANGCI_LINT_VER = "1.29.0"
1011
lint:
11-
scripts/golangci-lint-check.sh
12-
golangci-lint --timeout 3m run
12+
# 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

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)