Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: Support build when CGO is disabled #5

Merged
merged 1 commit into from
Dec 2, 2022
Merged

build: Support build when CGO is disabled #5

merged 1 commit into from
Dec 2, 2022

Conversation

pjbgf
Copy link
Owner

@pjbgf pjbgf commented Dec 2, 2022

sha1cd may be a transient dependency to some applications which do not support (or want to) CGO. The changes enable this by falling back to the Pure Go implementation.

If users then want to override the Pure Go sha1cd with the SHA1 implementation from the standard library they can do so with:

hash.RegisterHash(crypto.SHA1, sha1.New)

sha1cd may be a transient dependency to some applications which
do not support (or want to) CGO. The changes enable this by
falling back to the Pure Go implementation.

If users then want to override the Pure Go sha1cd with the
SHA1 implementation from the standard library they can do
so with:

hash.RegisterHash(crypto.SHA1, sha1.New)

Signed-off-by: Paulo Gomes <pjbgf@linux.com>
@pjbgf pjbgf merged commit 6aedff0 into main Dec 2, 2022
@pjbgf pjbgf deleted the no-cgo-support branch December 2, 2022 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant