build: document doGoModTidy function in ci.go

This commit is contained in:
Jared Wasinger 2024-10-28 14:16:23 +09:00
parent 24c5493bec
commit 534ed997f6

View file

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