Skip to content

feat: golangci-lint v2 support #2768

feat: golangci-lint v2 support

feat: golangci-lint v2 support #2768

Triggered via pull request March 17, 2025 22:18
Status Failure
Total duration 1m 20s
Artifacts

test.yml

on: pull_request
Matrix: test-go-install
Matrix: test-go-mod
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

77 errors and 10 warnings
test (ubuntu-latest, v2.0.0)
Unexpected HTTP response: 404
test (ubuntu-latest, v2.0.0)
Failed to run: Error: Unexpected HTTP response: 404, Error: Unexpected HTTP response: 404 at /home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:7882:25 at Generator.next (<anonymous>) at fulfilled (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:7795:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
test (ubuntu-22.04-arm, latest)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (macos-latest, v2.0)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (ubuntu-22.04-arm, v2.0)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (ubuntu-latest, v2.0)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (macos-latest, v2.0.0)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (windows-latest, v2.0.0)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (windows-latest)
A task was canceled.
test (windows-latest)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (windows-latest, v2.0)
The operation was canceled.
test (windows-latest, v2.0)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (ubuntu-latest)
Cannot read properties of undefined (reading 'slice')
test (ubuntu-latest)
Failed to run: TypeError: Cannot read properties of undefined (reading 'slice'), TypeError: Cannot read properties of undefined (reading 'slice') at getAssetURL (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92609:48) at installBin (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92564:22) at installBinary (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92524:20) at install (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92511:18) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async prepareEnv (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92825:21)
test (ubuntu-latest)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (ubuntu-latest, latest)
Cannot read properties of undefined (reading 'slice')
test (ubuntu-latest, latest)
Failed to run: TypeError: Cannot read properties of undefined (reading 'slice'), TypeError: Cannot read properties of undefined (reading 'slice') at getAssetURL (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92609:48) at installBin (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92564:22) at installBinary (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92524:20) at install (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92511:18) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async prepareEnv (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:92825:21)
test (ubuntu-latest, latest)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (macos-latest)
The operation was canceled.
test (windows-latest, latest)
The operation was canceled.
test (macos-latest)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (windows-latest, latest)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test (ubuntu-22.04-arm)
The operation was canceled.
test (ubuntu-22.04-arm)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test-go-mod (ubuntu-latest, sample-go-mod)
Unexpected HTTP response: 404
test-go-mod (ubuntu-latest, sample-go-mod)
Failed to run: Error: Unexpected HTTP response: 404, Error: Unexpected HTTP response: 404 at /home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:7882:25 at Generator.next (<anonymous>) at fulfilled (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:7795:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
test-go-mod (windows-latest, sample-go-tool)
The strategy configuration was canceled because "test-go-mod.ubuntu-latest_sample-go-m" failed
test-go-mod (ubuntu-latest, sample-go-tool)
Unexpected HTTP response: 404
test-go-mod (ubuntu-latest, sample-go-tool)
Failed to run: Error: Unexpected HTTP response: 404, Error: Unexpected HTTP response: 404 at /home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:7882:25 at Generator.next (<anonymous>) at fulfilled (/home/runner/work/golangci-lint-action/golangci-lint-action/dist/run/index.js:7795:58) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
test-go-mod (ubuntu-latest, sample-go-tool)
The strategy configuration was canceled because "test-go-mod.ubuntu-latest_sample-go-m" failed
test (ubuntu-22.04-arm, v2.0.0)
The operation was canceled.
test (ubuntu-22.04-arm, v2.0.0)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test-go-mod (ubuntu-22.04-arm, sample-go-tool)
The operation was canceled.
test-go-mod (ubuntu-22.04-arm, sample-go-tool)
The strategy configuration was canceled because "test-go-mod.ubuntu-latest_sample-go-m" failed
test (macos-latest, latest)
The operation was canceled.
test (macos-latest, latest)
The strategy configuration was canceled because "test.ubuntu-latest_v2_0_0" failed
test-go-mod (ubuntu-22.04-arm, sample-go-mod)
The operation was canceled.
test-go-mod (ubuntu-22.04-arm, sample-go-mod)
The strategy configuration was canceled because "test-go-mod.ubuntu-latest_sample-go-m" failed
test-go-mod (macos-latest, sample-go-tool)
The operation was canceled.
test-go-mod (macos-latest, sample-go-tool)
The strategy configuration was canceled because "test-go-mod.ubuntu-latest_sample-go-m" failed
test-go-mod (macos-latest, sample-go-mod)
The operation was canceled.
test-go-mod (macos-latest, sample-go-mod)
The strategy configuration was canceled because "test-go-mod.ubuntu-latest_sample-go-m" failed
test-go-mod (windows-latest, sample-go-mod)
The operation was canceled.
test-go-mod (windows-latest, sample-go-mod)
The strategy configuration was canceled because "test-go-mod.ubuntu-latest_sample-go-m" failed
test-go-install (ubuntu-latest, v2.0.0)
Command failed: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0 go: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0: invalid version: unknown revision v2/cmd/golangci-lint/v2.0.0
test-go-install (ubuntu-latest, v2.0.0)
Failed to run: Error: Command failed: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0 go: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0: invalid version: unknown revision v2/cmd/golangci-lint/v2.0.0 , Error: Command failed: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0 go: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.0.0: invalid version: unknown revision v2/cmd/golangci-lint/v2.0.0 at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:422:12) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5)
test-go-install (ubuntu-22.04-arm)
The operation was canceled.
test-go-install (ubuntu-22.04-arm)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (ubuntu-22.04-arm, latest)
The operation was canceled.
test-go-install (ubuntu-22.04-arm, latest)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (ubuntu-22.04-arm, v2.0.0)
The operation was canceled.
test-go-install (ubuntu-22.04-arm, v2.0.0)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (ubuntu-latest, 95c39ac1fbaf66475705c06c16259ffd9d6bf9a2)
Command failed: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2 go: downloading github.com/golangci/golangci-lint v1.63.5-0.20250103201737-95c39ac1fbaf go: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2: module github.com/golangci/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2 found (v1.63.5-0.20250103201737-95c39ac1fbaf), but does not contain package github.com/golangci/golangci-lint/v2/cmd/golangci-lint
test-go-install (ubuntu-latest, 95c39ac1fbaf66475705c06c16259ffd9d6bf9a2)
Failed to run: Error: Command failed: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2 go: downloading github.com/golangci/golangci-lint v1.63.5-0.20250103201737-95c39ac1fbaf go: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2: module github.com/golangci/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2 found (v1.63.5-0.20250103201737-95c39ac1fbaf), but does not contain package github.com/golangci/golangci-lint/v2/cmd/golangci-lint , Error: Command failed: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2 go: downloading github.com/golangci/golangci-lint v1.63.5-0.20250103201737-95c39ac1fbaf go: github.com/golangci/golangci-lint/v2/cmd/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2: module github.com/golangci/golangci-lint@95c39ac1fbaf66475705c06c16259ffd9d6bf9a2 found (v1.63.5-0.20250103201737-95c39ac1fbaf), but does not contain package github.com/golangci/golangci-lint/v2/cmd/golangci-lint at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:422:12) at ChildProcess.emit (node:events:519:28) at maybeClose (node:internal/child_process:1105:16) at ChildProcess._handle.onexit (node:internal/child_process:305:5)
test-go-install (ubuntu-latest, 95c39ac1fbaf66475705c06c16259ffd9d6bf9a2)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (ubuntu-latest)
The operation was canceled.
test-go-install (ubuntu-latest)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (macos-latest)
The operation was canceled.
test-go-install (macos-latest)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (windows-latest, 95c39ac1fbaf66475705c06c16259ffd9d6bf9a2)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (windows-latest, latest)
The operation was canceled.
test-go-install (windows-latest, latest)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (windows-latest)
The operation was canceled.
test-go-install (windows-latest)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (ubuntu-latest, latest)
The operation was canceled.
test-go-install (ubuntu-latest, latest)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (macos-latest, v2.0.0)
The operation was canceled.
test-go-install (macos-latest, v2.0.0)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (macos-latest, latest)
The operation was canceled.
test-go-install (macos-latest, latest)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (ubuntu-22.04-arm, 95c39ac1fbaf66475705c06c16259ffd9d6bf9a2)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (macos-latest, 95c39ac1fbaf66475705c06c16259ffd9d6bf9a2)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test-go-install (windows-latest, v2.0.0)
The operation was canceled.
test-go-install (windows-latest, v2.0.0)
The strategy configuration was canceled because "test-go-install.ubuntu-latest_v2_0_0" failed
test (ubuntu-latest, v2.0.0)
Restore cache failed: Dependencies file is not found in /home/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum
test (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum
test (ubuntu-latest, latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum
test-go-mod (ubuntu-latest, sample-go-mod)
Restore cache failed: Dependencies file is not found in /home/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum
test-go-mod (ubuntu-latest, sample-go-tool)
Restore cache failed: Dependencies file is not found in /home/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum
test-go-install (ubuntu-latest, v2.0.0)
Restore cache failed: Dependencies file is not found in /home/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum
test-go-install (ubuntu-latest, 95c39ac1fbaf66475705c06c16259ffd9d6bf9a2)
Restore cache failed: Dependencies file is not found in /home/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum
test-go-install (windows-latest, 95c39ac1fbaf66475705c06c16259ffd9d6bf9a2)
Restore cache failed: Dependencies file is not found in D:\a\golangci-lint-action\golangci-lint-action. Supported file pattern: go.sum
test-go-install (ubuntu-latest, latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum
test-go-install (macos-latest, latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/golangci-lint-action/golangci-lint-action. Supported file pattern: go.sum