8000 Error building without CGO · Issue #624 · go-git/go-git · GitHub
[go: up one dir, main page]

Skip to content
Error building without CGO #624
Closed
@dornimaug

Description

@dornimaug

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0