Skip to content

Commit 1f494e8

Browse files
committed
[Internal] Bump golangci-lint to v2
* Update golangci-lint v1 -> v2 * Update Go verson v1.23 -> v1.25 (required by the latest golangci-lint version) * Migrate config * Fix reported issues
1 parent 41fcee2 commit 1f494e8

File tree

24 files changed

+368
-374
lines changed

24 files changed

+368
-374
lines changed

.github/workflows/build-artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
- name: Run golangci-lint
117117
uses: golangci/golangci-lint-action@v6
118118
with:
119-
version: v1.62.0 # Should match .pre-commit-config.yaml
119+
version: v2.6.2 # Should match .pre-commit-config.yaml
120120
args: --timeout=20m
121121
working-directory: runner
122122
- name: Test

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ repos:
77
args: ['--fix']
88
- id: ruff-format
99
- repo: https://github.com/golangci/golangci-lint
10-
rev: v1.62.0 # Should match .github/workflows/build-artifacts.yml
10+
rev: v2.6.2 # Should match .github/workflows/build-artifacts.yml
1111
hooks:
1212
- id: golangci-lint-full
13-
language_version: 1.23.8 # Should match runner/go.mod
14-
entry: bash -c 'cd runner && golangci-lint run'
13+
language_version: 1.25.0 # Should match runner/go.mod
14+
entry: bash -c 'cd runner && golangci-lint run --fix'
1515
stages: [manual]
1616
- repo: https://github.com/pre-commit/pre-commit-hooks
1717
rev: v5.0.0

0 commit comments

Comments
 (0)