After upgrading golangci-lint to v2.4.0 (2025-08-14), CI started failing: https://github.com/containerd/nerdctl/actions/runs/17294879972/job/49090536229?pr=4490 https://github.com/containerd/nerdctl/actions/runs/17294879986/job/49090535739?pr=4490 As a temporary workaround, we’ve disabled the following linters: ``` - name: redundant-test-main-exit disabled: true - name: enforce-switch-style disabled: true - name: var-naming disabled: true ``` We need refactor code to re-enabe these checks. Details: https://github.com/containerd/nerdctl/pull/4490
After upgrading golangci-lint to v2.4.0 (2025-08-14), CI started failing:
https://github.com/containerd/nerdctl/actions/runs/17294879972/job/49090536229?pr=4490
https://github.com/containerd/nerdctl/actions/runs/17294879986/job/49090535739?pr=4490
As a temporary workaround, we’ve disabled the following linters:
We need refactor code to re-enabe these checks.
Details: #4490