Skip to content

Fail CI on an untidy go.mod instead of fixing it - #33

Merged
polarn merged 1 commit into
mainfrom
ci-tidy-check
Oct 16, 2026
Merged

polarn merged 1 commit into
mainfrom
ci-tidy-check

Conversation

@polarn

@polarn polarn commented Oct 16, 2026

Copy link
Copy Markdown
Owner
  • The build job ran go mod tidy as "Install dependencies" and goreleaser ran it as a before hook, so CI rewrote a stale go.mod/go.sum before testing and never reported it. Both now run go mod tidy -diff, which prints the needed change and exits 1.
  • pr-build.yaml and release.yaml asked for 1.26; all three workflows now use 1.26.x, matching build.yaml.

Reproduce the failure: drop the golang.org/x/net lines from go.sum and run go mod tidy -diff.

🤖 Generated with Claude Code

go mod tidy -diff in the build job and the goreleaser hook, and the
Go version spelled 1.26.x in every workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@polarn
polarn merged commit 50978a4 into main Oct 16, 2026
3 checks passed
@polarn
polarn deleted the ci-tidy-check branch October 16, 2026 13:55
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