tests: fix failed prow test by adding golangci-lint to Makefile

Missing binary, fixes golangci-lint command not found on prow jobs

Signed-off-by: Etienne Simard <esimard@ripple.com>
This commit is contained in:
Etienne Simard
2023-11-15 13:19:39 -06:00
parent d0114cf4c0
commit 4ec3cf8cfa

View File

@@ -86,7 +86,7 @@ verify-dep:
PASSES="dep" ./scripts/test.sh
.PHONY: verify-lint
verify-lint:
verify-lint: install-golangci-lint
PASSES="lint" ./scripts/test.sh
.PHONY: fix-lint
@@ -152,6 +152,14 @@ endif
# Tools
GOLANGCI_LINT_VERSION = "v1.55.2"
.PHONY: install-golangci-lint
install-golangci-lint:
ifeq (, $(shell which golangci-lint))
$(shell curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin $(GOLANGCI_LINT_VERSION))
endif
.PHONY: install-lazyfs
install-lazyfs: bin/lazyfs