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)
mainVerified against
main@7a34fc9— already done, closing.PR #187 (merged 2026-08-07) bumped the pin. The
Dockerfilelint stage now reads:Digest-pinned, with the version/date comment above it per
REPO_POLICIES.md.script/bootstrapwas pinned to the matching 2.12.2 release archives in the same PR.Confirmed empirically just now:
docker build .onmainpasses end to end (exit 0) with the lint stage reporting0 issues.— so the CI-vs-local divergence described here is closed, not merely re-hidden.One follow-on surfaced by the new linter, not blocking this issue: golangci-lint v2.12 warns that
gomodguardis deprecated in favour ofgomodguard_v2. That belongs in the canonical config upstream, per the note in PR #187.