We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1019851 commit 26c2ae1Copy full SHA for 26c2ae1
internal/cache/cache.go
@@ -3,7 +3,7 @@ package cache
3
import (
4
"context"
5
"crypto/sha1"
6
- "encoding/base32"
+ "encoding/hex"
7
"errors"
8
"fmt"
9
"io/fs"
@@ -39,7 +39,7 @@ func Open(treeRoot string, clean bool) (err error) {
39
h.Write([]byte(treeRoot))
40
digest := h.Sum(nil)
41
42
- name := base32.StdEncoding.EncodeToString(digest)
+ name := hex.EncodeToString(digest)
43
path, err := xdg.CacheFile(fmt.Sprintf("treefmt/eval-cache/%v.db", name))
44
if err != nil {
45
return fmt.Errorf("%w: could not resolve local path for the cache", err)
0 commit comments