Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Build project with git2go #942

Closed
maxmeyer opened this issue Aug 3, 2017 · 1 comment
Closed

Build project with git2go #942

maxmeyer opened this issue Aug 3, 2017 · 1 comment

Comments

@maxmeyer
Copy link

maxmeyer commented Aug 3, 2017

What version of Go (go version) and dep (git describe --tags) are you using?

$ go version
go version go1.8.3 linux/amd64
cd $GOPATH/src/github.com/golang/dep
v0.1.0-191-g4bfa359

What dep command did you run?

git clone https://github.com/fedux-org/letter-generator-go
dep ensure
make 
# or build by hand with 
go build -o dist/lg github.com/fedux-org/letter-generator-go/cmd/lg

What did you expect to see?

Project is built.

What did you see instead?

Failed to open '/home/user/.local/share/go-packages/src/github.com/fedux-org/letter-generator-go/vendor/github.com/libgit2/git2go/vendor/libgit2/build/libgit2.pc': No such file or directory
No package '/home/user/.local/share/go-packages/src/github.com/fedux-org/letter-generator-go/vendor/github.com/libgit2/git2go/vendor/libgit2/build/libgit2.pc' found
pkg-config: exit status 1
make: *** [Makefile:2: build] Error 2
~
@sdboyer
Copy link
Member

sdboyer commented Aug 3, 2017

hi! thanks for the issue report.

git2go requires that libgit2 be installed and available on your system, such that (in your case) pkg-config can locate it. this is noted in the git2go README. while it's possible that we may eventually be able to introduce mechanisms for automating the retrieval of external, non-Go libraries - #269 - it's not high on our current priority list.

@sdboyer sdboyer closed this as completed Aug 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants