Repository navigation
feat: Tidy Go modules after every Renovate Go update - #35
Merged
Merged
Conversation
Renovate's Go updates change go.mod and go.sum but leave stale hashes for the old module behind, and sometimes miss a hash a code generator needs. Every Go repository checks that go mod tidy is a no-op, so those pull requests, security fixes included, sat red until someone pushed go mod tidy by hand (instrumentation#13, search#133, ramp-provider#2, dns-operator#438). Key features/changes: - Add the built-in gomodTidy post-update option for the gomod manager - Both milo-os and datum-labs inherit this preset through their org configs, so one rule covers all three organisations gomodTidy runs inside Renovate's Go manager, so the hosted app needs no command allowlist for it, unlike postUpgradeTasks. Related to datum-cloud/infra#8211
kevwilliams
approved these changes
Nov 1, 2026
kevwilliams
left a comment
There was a problem hiding this comment.
Verified gomodTidy is a built-in postUpdateOption scoped to the gomod manager, so no allowlist is needed and other managers are untouched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renovate's Go updates leave stale or missing hashes in the module checksum file, so each one fails its repo's tidy or code-generation check until someone runs go mod tidy by hand.
Four updates sat red this way last week, three of them security fixes: milo-os/instrumentation#13, milo-os/search#133, milo-os/ramp-provider#2 and datum-cloud/dns-operator#438.
Renovate now runs go mod tidy itself after every Go update, in every repository of datum-cloud, milo-os and datum-labs, since all three inherit this policy.
The option is built into Renovate's Go support, so the hosted Renovate app needs no command allowlist for it.
Test plan
Related to datum-cloud/infra#8211