Skip to content

Commit 7a393fe

Browse files
changes
Signed-off-by: Abdur Rehman <razashahid107@gmail.com>
1 parent 6051eeb commit 7a393fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,13 @@ docker-static-ip-test-certs-metrics-proxy-run:
358358
/bin/bash -c "cd /etcd && /certs-metrics-proxy/run.sh && rm -rf m*.etcd"
359359

360360

361+
# Tools
362+
GOLANGCI_LINT_VERSION = $(shell cd tools/mod && go list -m -f {{.Version}} github.com/golangci/golangci-lint)
363+
.PHONY: install-golangci-lint
364+
install-golangci-lint:
365+
ifeq (, $(shell which golangci-lint))
366+
$(shell curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin $(GOLANGCI_LINT_VERSION))
367+
endif
361368

362369
# Example:
363370
# make build-docker-test

0 commit comments

Comments
 (0)