mirror of
https://github.com/navidrome/navidrome.git
synced 2025-12-23 23:18:05 -05:00
build(makefile): fix golangci-lint installation path check
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
2
Makefile
2
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
|
||||
|
||||
Reference in New Issue
Block a user