From 98a8d1daa5882c8b13182833323c37411acaeec9 Mon Sep 17 00:00:00 2001 From: Honnix Date: Mon, 9 Dec 2019 22:20:32 +0100 Subject: [PATCH] Update Makefile --- boilerplate/lyft/golang_test_targets/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boilerplate/lyft/golang_test_targets/Makefile b/boilerplate/lyft/golang_test_targets/Makefile index 25ef5351..be73c55f 100644 --- a/boilerplate/lyft/golang_test_targets/Makefile +++ b/boilerplate/lyft/golang_test_targets/Makefile @@ -5,7 +5,8 @@ .PHONY: lint lint: #lints the package for common code smells - which golangci-lint || go install github.com/golangci/golangci-lint/cmd/golangci-lint + # install outside of current module, workaround https://github.com/golang/go/issues/30515 + which golangci-lint || (cd /tmp && go get github.com/golangci/golangci-lint/cmd/golangci-lint && cd -) # Calling lint twice here is a hack. The first call seem to fail when internally calling `go list...` # However, that call seem to have some effects (e.g. https://github.com/golang/go/issues/29452) which, for some # reason, allows the subsequent calls to succeed.