Skip to content

Fix CI gates: govuln, gofmt/goimports, pinned lint#60

Merged
ravinald merged 4 commits into
mainfrom
fix/ci-gates
Jun 3, 2026
Merged

Fix CI gates: govuln, gofmt/goimports, pinned lint#60
ravinald merged 4 commits into
mainfrom
fix/ci-gates

Conversation

@ravinald
Copy link
Copy Markdown
Owner

@ravinald ravinald commented Jun 3, 2026

Summary

The main CI pipeline was red on two gates unrelated to the format-positional merge: govulncheck (stdlib vulns fixed in go1.26.4) and formatting drift in test files that golangci-lint's run.tests: false never checked. This brings every gate green and adds enforcement so format drift can't recur regardless of which files a PR touches.

Fix

  • Bump toolchain go1.26.4 — resolves GO-2026-5039 (net/textproto) and GO-2026-5037 (crypto/x509).
  • make fmt-check (gofmt + goimports, whole tree including tests) wired into CI's lint job and make check; make fmt now applies goimports too.
  • Reformat 21 files to gofmt + goimports clean.
  • Pin golangci-lint to v2.12.1 so its bundled formatter can't drift from the toolchain's gofmt.

Verified green: make fmt-check, go vet ./..., golangci-lint run ./... (0 issues), go test -race ./..., govulncheck ./... (0 vulns), gosec ./....

@ravinald ravinald merged commit 26fe9f8 into main Jun 3, 2026
7 checks passed
@ravinald ravinald deleted the fix/ci-gates branch June 3, 2026 21:37
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.

1 participant