x/build: TryBots should check go.mod files are tidy #31640
Labels
Builders
x/build issues (builders, bots, dashboards)
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
CL 172972 added a dependency on
golang.org/x/sync
ingolang.org/x/tools
. The go.mod and go.sum files were not updated.There's nothing wrong with this dependency, but it should have been more noticeable during code review. If unexpected requirement were added to go.mod, human reviewers would see it.
TryBots should report an error if go.mod and go.sum change with
go mod tidy
. This will make sure dependency changes are explicit, and it will keep builds deterministic.The text was updated successfully, but these errors were encountered: