We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I compile the gittar module, it throws the following error
------------ Start Build Version Details ------------ AppName: gittar Arch: arm64 OS: darwin Version: 4.0 BuildTime: 2021-05-16 23:20:58 GoVersion: go version go1.16.4 darwin/arm64 CommitID: 0c4e0654b9e934164f1ea03e2e5b0de0fb8775ed DockerImage: ------------ End Build Version Details ------------ git submodule update --init go mod tidy: already have vendor dir, skip tidy cd "/Users/liuhaoyang/projects/github/erda/erda/cmd/gittar" && \ PROJ_PATH=/Users/liuhaoyang/projects/github/erda/erda GOPRIVATE= go build -ldflags " -X 'github.com/erda-project/erda-infra/base/version.Version=4.0' -X 'github.com/erda-project/erda-infra/base/version.BuildTime=2021-05-16 23:20:58' -X 'github.com/erda-project/erda-infra/base/version.CommitID=0c4e0654b9e934164f1ea03e2e5b0de0fb8775ed' -X 'github.com/erda-project/erda-infra/base/version.GoVersion=go version go1.16.4 darwin/arm64' -X 'github.com/erda-project/erda-infra/base/version.DockerImage='" -tags dynamic -o "/Users/liuhaoyang/projects/github/erda/erda/bin/gittar" # github.com/libgit2/git2go/v30 ../../vendor/github.com/libgit2/git2go/v30/blame.go:4:10: fatal error: 'git2.h' file not found #include <git2.h> ^~~~~~~~ 1 error generated. make: *** [build] Error 2
I have confirmed that I have installed libgit2 with reference to https://github.com/odewahn/git2go-test. How should I solve this problem next ?
The text was updated successfully, but these errors were encountered:
@littlejiancc take a look at it.
Sorry, something went wrong.
@liuhaoyang Please install the correct version of libgit2. The git2go version is v30 in code.
Reference: https://github.com/libgit2/git2go#which-go-version-to-use
No branches or pull requests
When I compile the gittar module, it throws the following error
I have confirmed that I have installed libgit2 with reference to https://github.com/odewahn/git2go-test.
How should I solve this problem next ?
The text was updated successfully, but these errors were encountered: