ci: avoid hashing the .jj directory if it exists

slightly speeds up the ci script for users of the jj vcs.
This commit is contained in:
Josh Klopfenstein 2026-01-07 15:31:31 -08:00
parent 8cb79bb455
commit f206c2c23a

View file

@ -464,7 +464,7 @@ func doCheckGenerate() {
for _, mod := range goModules {
// Compute the origin hashes of all the files
hashes, err := build.HashFolder(mod, []string{"tests/testdata", "build/cache", ".git"})
hashes, err := build.HashFolder(mod, []string{"tests/testdata", "build/cache", ".git", ".jj"})
if err != nil {
log.Fatal("Error computing hashes", "err", err)
}
@ -474,7 +474,7 @@ func doCheckGenerate() {
c.Dir = mod
build.MustRun(c)
// Check if generate file hashes have changed
generated, err := build.HashFolder(mod, []string{"tests/testdata", "build/cache", ".git"})
generated, err := build.HashFolder(mod, []string{"tests/testdata", "build/cache", ".git", ".jj"})
if err != nil {
log.Fatalf("Error re-computing hashes: %v", err)
}