mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-09-07 15:07:17 +00:00
build(lint): point golangci-lint install at the v2 module path
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest silently resolves to the latest v1.x release (v1.64.8) -- Go's semantic import versioning treats v2+ as a completely separate module path (.../v2/cmd/golangci-lint), so the unsuffixed path's @latest can never see v2 releases. That mismatched v1 binary can't even load this repo's v2-format .golangci.yml, and separately doesn't understand the go1.27.0 toolchain declared in go.mod. Fix the install hint in `make lint`'s not-found message to use the /v2 path, and refresh the now-current version noted in .golangci.yml's header comment (installed locally as v2.13.1, built with go1.27.0). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
97c28b5516
commit
424631b93a
+1
-1
@@ -1,5 +1,5 @@
|
||||
# golangci-lint configuration for Bose SoundTouch Go Library
|
||||
# Compatible with golangci-lint v2.8.0
|
||||
# Compatible with golangci-lint v2.13.1
|
||||
# See: https://golangci-lint.run/usage/configuration/
|
||||
|
||||
version: "2"
|
||||
|
||||
@@ -243,7 +243,7 @@ vet:
|
||||
|
||||
lint:
|
||||
@echo "Running golangci-lint..."
|
||||
@which golangci-lint > /dev/null || (echo "golangci-lint not found. Install with: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest" && exit 1)
|
||||
@which golangci-lint > /dev/null || (echo "golangci-lint not found. Install with: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest" && exit 1)
|
||||
golangci-lint run
|
||||
|
||||
tidy:
|
||||
|
||||
Reference in New Issue
Block a user