Skip to content

Commit 76ac023

Browse files
committed
Don't include sum file in hash since it changes too often
1 parent 538f4a5 commit 76ac023

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cache.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ func (cmd *Cache) Exec() {
2929

3030
hash, err := HashFiles(
3131
filepath.Join(repodir, "go.mod"),
32-
filepath.Join(repodir, "go.sum"))
32+
// filepath.Join(repodir, "go.sum"),
33+
)
3334
ErrFatal(err)
3435

3536
fmt.Println("HASH:", hash)
@@ -60,7 +61,8 @@ func (cmd *Hash) Exec() {
6061

6162
hash, err := HashFiles(
6263
filepath.Join(repodir, "go.mod"),
63-
filepath.Join(repodir, "go.sum"))
64+
//filepath.Join(repodir, "go.sum"),
65+
)
6466
ErrFatal(err)
6567

6668
fmt.Println(hash)

0 commit comments

Comments
 (0)