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

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan
2025-05-24 22:40:33 -04:00
parent 441c9f52cc
commit f7fb77054f

View File

@@ -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