Skip to content

Commit c3919f9

Browse files
authored
build: document doGoModTidy function in ci.go (#30685)
1 parent 80bdab7 commit c3919f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/ci.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ func compareHashedFilesets(preHashes map[string][32]byte, postHashes map[string]
409409
return updates
410410
}
411411

412+
// doGoModTidy runs 'go mod tidy' and asserts that go.sum/go.mod do not change
413+
// as a result.
412414
func doGoModTidy() {
413415
targetFiles := []string{"go.mod", "go.sum"}
414416
preHashes, err := hashSourceFiles(targetFiles)

0 commit comments

Comments
 (0)