You've already forked go-semantic-release
fix(*): Vendored project dependencies
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
32
vendor/github.com/pjbgf/sha1cd/cgo/fallback_no_cgo.go
generated
vendored
Normal file
32
vendor/github.com/pjbgf/sha1cd/cgo/fallback_no_cgo.go
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
//go:build !cgo
|
||||
// +build !cgo
|
||||
|
||||
package cgo
|
||||
|
||||
import (
|
||||
"hash"
|
||||
|
||||
"github.com/pjbgf/sha1cd"
|
||||
"github.com/pjbgf/sha1cd/ubc"
|
||||
)
|
||||
|
||||
// CalculateDvMask falls back to github.com/pjbgf/sha1cd/ubc implementation
|
||||
// due to CGO being disabled at compilation time.
|
||||
func CalculateDvMask(W []uint32) (uint32, error) {
|
||||
return ubc.CalculateDvMask(W)
|
||||
}
|
||||
|
||||
// CalculateDvMask falls back to github.com/pjbgf/sha1cd implementation
|
||||
// due to CGO being disabled at compilation time.
|
||||
func New() hash.Hash {
|
||||
return sha1cd.New()
|
||||
}
|
||||
|
||||
// CalculateDvMask falls back to github.com/pjbgf/sha1cd implementation
|
||||
// due to CGO being disabled at compilation time.
|
||||
func Sum(data []byte) ([]byte, bool) {
|
||||
d := sha1cd.New().(sha1cd.CollisionResistantHash)
|
||||
d.Write(data)
|
||||
|
||||
return d.CollisionResistantSum(nil)
|
||||
}
|
||||
Reference in New Issue
Block a user