aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2023-02-28 23:47:00 +0100
committerGitHub <noreply@github.com>2023-02-28 23:47:00 +0100
commit2401659b649ff6d386383ec06c4b9d5290b2741c (patch)
tree1d14ac51034f021469322a0ea03ea20657f7df2d /plumbing
parent7ab4957732a817bada223e5c361f0c9753d9e40c (diff)
parentbd33c95fc3cbe8c04dd084c22defd1aa3c3e43dc (diff)
downloadgo-git-2401659b649ff6d386383ec06c4b9d5290b2741c.tar.gz
Merge pull request #688 from pjbgf/bump-sha1cd
Remove need to build with CGO
Diffstat (limited to 'plumbing')
-rw-r--r--plumbing/hash/hash.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/plumbing/hash/hash.go b/plumbing/hash/hash.go
index fe3bf76..80e4b5f 100644
--- a/plumbing/hash/hash.go
+++ b/plumbing/hash/hash.go
@@ -7,7 +7,7 @@ import (
"fmt"
"hash"
- "github.com/pjbgf/sha1cd/cgo"
+ "github.com/pjbgf/sha1cd"
)
// algos is a map of hash algorithms.
@@ -20,9 +20,7 @@ func init() {
// reset resets the default algos value. Can be used after running tests
// that registers new algorithms to avoid side effects.
func reset() {
- // For performance reasons the cgo version of the collision
- // detection algorithm is being used.
- algos[crypto.SHA1] = cgo.New
+ algos[crypto.SHA1] = sha1cd.New
}
// RegisterHash allows for the hash algorithm used to be overriden.