fix: remove version field to work with CI v1.64.8
The golangci-lint-action doesn't properly support v2.1.6 (uses --out-format flag which v2 doesn't support). Remove version: 2 from config to make it compatible with CI v1.64.8. Local v2.x will still work but may show a deprecation warning about the config format.
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -79,9 +79,9 @@ jobs:
|
|||||||
go-version: '1.24'
|
go-version: '1.24'
|
||||||
|
|
||||||
- name: Run golangci-lint
|
- name: Run golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v4
|
uses: golangci/golangci-lint-action@v3
|
||||||
with:
|
with:
|
||||||
version: v2.1.6
|
version: v1.64.8
|
||||||
args: --timeout=5m
|
args: --timeout=5m
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# golangci-lint configuration
|
# golangci-lint configuration
|
||||||
# See https://golangci-lint.run/usage/configuration/
|
# See https://golangci-lint.run/usage/configuration/
|
||||||
|
# Note: CI uses v1.64.8 which doesn't support version: 2
|
||||||
version: 2
|
# Local v2.x will work with this config but may show a deprecation warning
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
|
|||||||
Reference in New Issue
Block a user