Skip to content

Commit

Permalink
Merge pull request etcd-io#16949 from etsrpl/fix-golangci-lint-missing
Browse files Browse the repository at this point in the history
tests: fix failed prow test by adding golangci-lint to Makefile
  • Loading branch information
ahrtr authored Nov 16, 2023
2 parents 8a09853 + 4ec3cf8 commit 5ec2598
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 5ec2598

Please sign in to comment.