diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-06-07 02:58:28 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-06-07 03:03:04 +0200 |
| commit | c734fc2a6b015f5b38f30da106736877cfbe02c7 (patch) | |
| tree | 3b1609277c8f355005c7fd5642d9e2102f1caee4 /README.md | |
| parent | 064629428296914c4a5875f8da6b557d55f82930 (diff) | |
Use a submodule for libgit2
This makes building the static version easier as we know where the repo
is and that it's has a known-good version.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -6,7 +6,12 @@ Go bindings for [libgit2](http://libgit2.github.com/). These bindings are for to Installing ---------- -Just `go get github.com/libgit2/git2go`. You'll need to have top-of-the-branch libgit2 from development installed in your system and available via `pkg-config`. These bindings are in sync with the top of `development`. +This project needs libgit2, which is written in C so we need to take an extra step. Run `go get github.com/libgit2/git2go` and go to your `$GOROOT/src/github.com/libgt2/git2go` dir. From there, we need to build the C code and put it into the resulting go binary. + + git submodule update --init + make install + +will compile libgit2, build it statically into git2go and install the resulting object file where your Go project can use it. License ------- |
