Skip to content

chore: update golangci-lint to 2.12.2 - #53

Merged
umputun merged 1 commit into
masterfrom
chore/golangci-2.12.2
Aug 21, 2026
Merged

chore: update golangci-lint to 2.12.2#53
umputun merged 1 commit into
masterfrom
chore/golangci-2.12.2

Conversation

@umputun

@umputun umputun commented Aug 21, 2026

Copy link
Copy Markdown
Owner

The GOLANGCI pin has been at 2.9.0 since February, while the images that consume this base pin newer versions in their own workflows. That gap stayed invisible because buildgo-latest was not rebuilt for months. When it was rebuilt yesterday, every consumer received the accumulated jump at once, and secrets went red: its Dockerfile lints with the base image while its workflow lints with v2.12.2, and the two versions disagree in both directions.

Concretely, gosec at 2.12.2 emits G124, G705 and G118 at sites where 2.9.0 does not, so suppressions required by one version read as unused to the other. No arrangement of //nolint comments satisfies both while nolintlint is enabled.

Bumping the pin to 2.12.2 removes the split rather than working around it in each consumer. Verified by running golangci-lint 2.12.2 against unmodified secrets master: 0 issues, so that repository needs no change of its own once this image is rebuilt.

One line. GORELEASER, GOVERALLS, STATIK, the Go base tag and the other two image directories are untouched.

Copilot AI lite review requested due to automatic review settings August 21, 2026 01:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@umputun
umputun merged commit 24da86f into master Aug 21, 2026
14 checks passed
@umputun
umputun deleted the chore/golangci-2.12.2 branch August 21, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants