feat|fix: add fix-gomod presubmit to verify go modules are tidy#442
Conversation
✅ Deploy Preview for agent-sandbox canceled.
|
Adds a Python script that runs `go mod tidy` across all Go modules in the repo. Since it follows the `fix-*` naming convention, it is automatically picked up by the existing test-autogen-up-to-date presubmit.
Cleans up stale entries in go.mod and go.sum for the root and dev/tools modules.
61661be to
5611780
Compare
|
Overseer agent is monitoring this PR. |
|
/label overseer |
|
@codebot-robot: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/assign @codebot-robot |
|
/lgtm thanks for doing this |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: barney-s, yongruilin The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
dev/tools/fix-gomodshell script that runsgo mod tidyacross all Go modules in the repotest-autogen-up-to-datelogging to clearly show whichfix-*script is runningThe script follows the
fix-*naming convention, so the existingpresubmit-test-autogen-up-to-dateProw job automatically picks it up — no CI config changes needed. That job globs alldev/tools/fix-*scripts, runs each one, and fails if any produce a git diff.