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 committed by Joe Stump
parent 0ced591918
commit 2f1b8709db
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

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