fix(ci): upgrade golangci-lint v1.62.2 to v2.11.4 for Go 1.25 support

The old v1 binary was built with Go 1.23 and rejected Go 1.25 targets.
Migrated .golangci.yml to v2 format: added version field, moved
linters-settings under linters.settings, removed deprecated linters
(structcheck/deadcode/varcheck), merged gosimple into staticcheck.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Shankar
2026-03-27 23:01:06 -04:00
parent 05e2a7406f
commit 295ead9235
2 changed files with 18 additions and 22 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.62.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.11.4
- name: Run golangci-lint
run: golangci-lint run ./... --timeout 5m