Bump Dockerfile lint stage golangci-lint pin from v2.10.1 to current v2.12.x #179
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Surveyed 2026-08-07: the
Dockerfilelint stage pinsgolangci/golangci-lintv2.10.1 by digest, while local developmentuses golangci-lint 2.12.2. The newer linter reports 94 findings
(
noctx47,gosec23,goconst24) that v2.10.1 does not — verifiedtoday:
script/cibuild(docker build, pinned v2.10.1) passes onmainwhile localmake checkfails with those 94. CI is thereforegreen while
mainis out of compliance with the "main always passesmake check" policy under the current toolchain.Once #175, #176, #177, and #178 land and local
make checkis clean,bump the pin so CI enforces the current lint set and this divergence
cannot reopen.
Steps:
FROM golangci/golangci-lint@sha256:...line inDockerfileto the digest of the current v2.12.x image# golangci/golangci-lint:v2.12.x, YYYY-MM-DD) perREPO_POLICIES.mdDefinition of done:
script/cibuildpasses with the new pin (lint stage runs thev2.12.x linter and finds zero issues)
main