Compare commits

...

2 Commits

Author SHA1 Message Date
93bc6e082c fix(ci): install golangci-lint v2.1.6 manually to match local environment
All checks were successful
CI / Test (pull_request) Successful in 1m48s
CI / Lint (pull_request) Successful in 29s
CI / Build (pull_request) Successful in 15s
CI / Format Check (pull_request) Successful in 3s
Install v2.1.6 manually in CI (not via action) to avoid --out-format flag
compatibility issues. This ensures both local and CI use the same version
and support version: 2 config format.
2025-11-05 13:36:48 +01:00
ef54924137 fix(ci): install golangci-lint manually and remove version field
The golangci-lint-action has compatibility issues with v2.1.6 (uses
--out-format flag which v2 doesn't support). Install golangci-lint manually
to avoid action limitations and remove version field from config to be
compatible with CI v1.64.8. Local v2.x will work but may show warnings.
2025-11-05 13:36:24 +01:00
2 changed files with 8 additions and 6 deletions

View File

@@ -78,11 +78,13 @@ jobs:
with:
go-version: '1.24'
- name: Install golangci-lint v2.1.6
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.1.6
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.64.8
args: --timeout=5m
run: golangci-lint run --timeout=5m
build:
name: Build

View File

@@ -1,7 +1,7 @@
# golangci-lint configuration
# See https://golangci-lint.run/usage/configuration/
# Note: CI uses v1.64.8 which doesn't support version: 2
# Local v2.x will work with this config but may show a deprecation warning
version: 2
run:
timeout: 5m