Skip to content

fix(renovate): add gomodTidy to org-level postUpdateOptions#81

Merged
robnester-rh merged 1 commit intoconforma:mainfrom
robnester-rh:EC-1765
Apr 15, 2026
Merged

fix(renovate): add gomodTidy to org-level postUpdateOptions#81
robnester-rh merged 1 commit intoconforma:mainfrom
robnester-rh:EC-1765

Conversation

@robnester-rh
Copy link
Copy Markdown
Contributor

Summary

  • Adds gomodTidy to postUpdateOptions in the org-level Renovate config
  • Ensures Renovate runs go mod tidy after updating Go module dependencies, preventing stale checksums in go.sum from breaking CI
  • This was proven effective in go-gather (PR #318) — applying it org-wide so all Go-based repos benefit
  • gomodTidy is a no-op for non-Go repos, so this is safe to set globally

Test plan

  • Verified in go-gather: PR #309 (go-git v5.17.2) passed CI after gomodTidy was enabled locally
  • After merge, confirm Renovate Go module PRs across other repos (e.g. cli, policy) produce clean go.sum files

Ref: EC-1765

Made with Cursor

Renovate Go module PRs fail CI across repos because stale checksums
remain in go.sum after dependency updates. Adding gomodTidy to
postUpdateOptions tells Renovate to run `go mod tidy` after updating
Go modules, which cleans up stale entries automatically. This was
proven effective in go-gather (PR #318) and is now applied org-wide.

Ref: EC-1765
Signed-off-by: Rob Nester <rnester@redhat.com>
Made-with: Cursor
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2986a780-7c36-4393-8d7b-15451e029d57

📥 Commits

Reviewing files that changed from the base of the PR and between c2ed4a0 and 3bfa2e7.

📒 Files selected for processing (1)
  • config/renovate/renovate.json

📝 Walkthrough

Walkthrough

Added a Renovate configuration option to automatically run go mod tidy after Go module updates, ensuring go.sum checksums remain synchronized with the module dependency graph.

Changes

Cohort / File(s) Summary
Renovate Configuration
config/renovate/renovate.json
Added "postUpdateOptions": ["gomodTidy"] to execute go mod tidy post-update for Go modules, keeping checksums in sync.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding gomodTidy to org-level postUpdateOptions in Renovate configuration.
Description check ✅ Passed The description is well-related to the changeset, providing context about the fix, rationale, validation evidence, and test plans for enabling gomodTidy in org-level Renovate config.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@st3penta st3penta left a comment

Choose a reason for hiding this comment

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

I vaguely remember i had this initially, but removed it because it was causing some problems.
However i don't remember exactly which problems was causing, nor if this was the actual root cause, so let's reintroduce it and see how it goes

@robnester-rh robnester-rh merged commit 4d4c736 into conforma:main Apr 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants