🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
fix(makefile): adjust PATH order for golangci-lint installation and linting
Deluan4488349a3aac
diff --git a/Makefile b/Makefileindex 4efbc4db6..ad96afd31 100644--- a/Makefile+++ b/Makefile@@ -75,8 +75,8 @@ test-i18n: ##@Development Validate all translations filesinstall-golangci-lint: ##@Development Install golangci-lint if not present@INSTALL=false; \- if PATH=$$PATH:./bin which golangci-lint > /dev/null 2>&1; then \- CURRENT_VERSION=$$(PATH=$$PATH:./bin golangci-lint version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -n1); \+ if PATH=./bin:$$PATH which golangci-lint > /dev/null 2>&1; then \+ CURRENT_VERSION=$$(PATH=./bin:$$PATH golangci-lint version 2>/dev/null | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -n1); \REQUIRED_VERSION=$$(echo "$(GOLANGCI_LINT_VERSION)" | sed 's/^v//'); \if [ "$$CURRENT_VERSION" != "$$REQUIRED_VERSION" ]; then \echo "Found golangci-lint $$CURRENT_VERSION, but $$REQUIRED_VERSION is required. Reinstalling..."; \@@ -93,7 +93,7 @@ install-golangci-lint: ##@Development Install golangci-lint if not present.PHONY: install-golangci-lintlint: install-golangci-lint ##@Development Lint Go code- PATH=$$PATH:./bin golangci-lint run --timeout 5m+ PATH=./bin:$$PATH golangci-lint run --timeout 5m.PHONY: lintlintall: lint ##@Development Lint Go and JS code