mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
10
Makefile
10
Makefile
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user