Skip to content

🎧 Your Personal Streaming Service

build(makefile): fix golangci-lint installation path check

Deluanf7fb77054f4f
diff --git a/Makefile b/Makefile
index c2a81bde9..8f90a80cc 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,7 @@ testall: testrace ##@Development Run Go and JS tests
.PHONY: testall
install-golangci-lint: ##@Development Install golangci-lint if not present
- @which golangci-lint > /dev/null || (echo "Installing golangci-lint..." && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s v2.1.6)
+ @PATH=$$PATH:./bin which golangci-lint > /dev/null || (echo "Installing golangci-lint..." && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s v2.1.6)
.PHONY: install-golangci-lint
lint: install-golangci-lint ##@Development Lint Go code