build: move tidy check to doTidy() (#2023)

This commit is contained in:
Daniel Liu 2026-02-06 17:14:07 +08:00 committed by GitHub
parent 29ad6db3bd
commit 07ed26f790
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -348,14 +348,6 @@ func doGenerate() {
}
}
fmt.Println("No stale files detected.")
// Run go mod tidy check.
for _, mod := range goModules {
tidy := tc.Go("mod", "tidy", "-diff")
tidy.Dir = mod
build.MustRun(tidy)
}
fmt.Println("No untidy module files detected.")
}
// doBadDeps verifies whether certain unintended dependencies between some