README: add -d flag to 'go get'
To make sure it doesn't try to build it.
This commit is contained in:
parent
58f6de09f4
commit
98299e65fb
|
@ -10,7 +10,7 @@ Installing
|
||||||
|
|
||||||
This project needs libgit2, which is written in C so we need to build that as well. In order to build libgit2, you need `cmake`, `pkg-config` and a C compiler. You will also need the development packages for OpenSSL and LibSSH2 if you want to use HTTPS and SSH respectively.
|
This project needs libgit2, which is written in C so we need to build that as well. In order to build libgit2, you need `cmake`, `pkg-config` and a C compiler. You will also need the development packages for OpenSSL and LibSSH2 if you want to use HTTPS and SSH respectively.
|
||||||
|
|
||||||
Run `go get github.com/libgit2/git2go` to download the code and go to your `$GOPATH/src/github.com/libgit2/git2go` dir. From there, we need to build the C code and put it into the resulting go binary.
|
Run `go get -d github.com/libgit2/git2go` to download the code and go to your `$GOPATH/src/github.com/libgit2/git2go` dir. From there, we need to build the C code and put it into the resulting go binary.
|
||||||
|
|
||||||
git submodule update --init # get libgit2
|
git submodule update --init # get libgit2
|
||||||
make install
|
make install
|
||||||
|
|
Loading…
Reference in New Issue