fix: add version field for local v2 compatibility and pin CI to v1.64.8
Some checks failed
CI / Build (pull_request) Successful in 6s
CI / Test (pull_request) Successful in 11s
CI / Lint (pull_request) Failing after 4s
CI / Format Check (pull_request) Successful in 2s

- Add version: 2 to .golangci.yml for local golangci-lint v2.1.6 compatibility
- Pin CI to use golangci-lint v1.64.8 explicitly (should support v2 config)

This ensures the config works both locally (v2.1.6) and in CI (v1.64.8).
If v1.64.8 doesn't support v2 config, we may need to upgrade CI to v2.
This commit is contained in:
2025-11-05 13:29:32 +01:00
parent 5f15ebd967
commit d8aab7f5c4
2 changed files with 3 additions and 1 deletions

View File

@@ -81,7 +81,7 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
version: v1.64.8
args: --timeout=5m
build:

View File

@@ -1,6 +1,8 @@
# golangci-lint configuration
# See https://golangci-lint.run/usage/configuration/
version: 2
run:
timeout: 5m
tests: true