Closed
Description
Trying to built a program using go-git v5.5.0 with CGO_ENABLED set to 0 results in an error:
imports github.com/go-git/go-git/v5
imports github.com/go-git/go-git/v5/config
imports github.com/go-git/go-git/v5/plumbing
imports github.com/go-git/go-git/v5/plumbing/hash
imports github.com/pjbgf/sha1cd/cgo: build constraints exclude all Go files in /home/jenkins/go/pkg/mod/github.com/pjbgf/sha1cd@v0.2.0/cgo
This seems to have been added/changed in #618.
Using
hash.RegisterHash(crypto.SHA1, sha1.New)
as suggested in the PR, does not fix the problem.
Metadata
Metadata
Assignees
Labels
No labels