build: document doGoModTidy function in ci.go (#30685)

This commit is contained in:
jwasinger 2024-10-28 18:26:36 +09:00 committed by GitHub
parent 80bdab757d
commit c3919f9bda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -409,6 +409,8 @@ func compareHashedFilesets(preHashes map[string][32]byte, postHashes map[string]
return updates
}
// doGoModTidy runs 'go mod tidy' and asserts that go.sum/go.mod do not change
// as a result.
func doGoModTidy() {
targetFiles := []string{"go.mod", "go.sum"}
preHashes, err := hashSourceFiles(targetFiles)