Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: use hex encoding for checksum instead of b64
  • Loading branch information
pd93 committed Sep 8, 2023
commit 756084cd21bd67c4064984232430b8bee69f4792
3 changes: 1 addition & 2 deletions taskfile/read/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package read

import (
"crypto/sha256"
"encoding/base64"
"fmt"
"os"
"path/filepath"
Expand All @@ -26,7 +25,7 @@ func NewCache(dir string) (*Cache, error) {
func checksum(b []byte) string {
h := sha256.New()
h.Write(b)
return base64.StdEncoding.EncodeToString(h.Sum(nil))
return fmt.Sprintf("%x", h.Sum(nil))
}

func (c *Cache) write(node Node, b []byte) error {
Expand Down