Skip to content

Commit

Permalink
avoid using an api that's not available in go 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Aug 6, 2023
1 parent 02e13e0 commit 3f4ed76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/api/api_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,8 @@ func rebuildImpl(args rebuildArgs, oldHashes map[string]string) (rebuildState, m
}
hasher := xxhash.New()
hasher.Write(item.Contents)
hash := base64.RawStdEncoding.EncodeToString(binary.LittleEndian.AppendUint64(hashBytes[:0], hasher.Sum64()))
binary.LittleEndian.PutUint64(hashBytes[:], hasher.Sum64())
hash := base64.RawStdEncoding.EncodeToString(hashBytes[:])
result.OutputFiles[i] = OutputFile{
Path: item.AbsPath,
Contents: item.Contents,
Expand Down

0 comments on commit 3f4ed76

Please sign in to comment.