From c3919f9bda9dd14cf4216109c4d1c3adacb804dd Mon Sep 17 00:00:00 2001 From: jwasinger Date: Mon, 28 Oct 2024 18:26:36 +0900 Subject: [PATCH] build: document doGoModTidy function in ci.go (#30685) --- build/ci.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/ci.go b/build/ci.go index 1765d750c2..d47e378811 100644 --- a/build/ci.go +++ b/build/ci.go @@ -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)