fix(renovate): add gomodTidy to org-level postUpdateOptions#81
fix(renovate): add gomodTidy to org-level postUpdateOptions#81robnester-rh merged 1 commit intoconforma:mainfrom
Conversation
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
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded a Renovate configuration option to automatically run Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
st3penta
left a comment
There was a problem hiding this comment.
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
Summary
gomodTidytopostUpdateOptionsin the org-level Renovate configgo mod tidyafter updating Go module dependencies, preventing stale checksums ingo.sumfrom breaking CIgo-gather(PR #318) — applying it org-wide so all Go-based repos benefitgomodTidyis a no-op for non-Go repos, so this is safe to set globallyTest plan
go-gather: PR #309 (go-git v5.17.2) passed CI aftergomodTidywas enabled locallycli,policy) produce cleango.sumfilesRef: EC-1765
Made with Cursor