Skip to content

Commit f439cc9

Browse files
authored
Merge pull request libgit2#413 from libgit2/cmn/master-static
README: master wants to use install-static
2 parents dc745f5 + cd77917 commit f439cc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ If using `master` or building a branch statically, we need to build libgit2 firs
3535
Run `go get -d github.com/libgit2/git2go` to download the code and go to your `$GOPATH/src/github.com/libgit2/git2go` directory. From there, we need to build the C code and put it into the resulting go binary.
3636

3737
git submodule update --init # get libgit2
38-
make install
38+
make install-static
3939

40-
will compile libgit2, link it into git2go and install it.
40+
will compile libgit2, link it into git2go and install it. The `master` branch is set up to follow the specific libgit2 version that is vendored, so trying dynamic linking may or may not work depending on the exact versions involved.
4141

4242
Parallelism and network operations
4343
----------------------------------
@@ -47,14 +47,14 @@ libgit2 may use OpenSSL and LibSSH2 for performing encrypted network connections
4747
Running the tests
4848
-----------------
4949

50-
For the stable version, `go test` will work as usual. For the `next` branch, similarly to installing, running the tests requires building a local libgit2 library, so the Makefile provides a wrapper that makes sure it's built
50+
For the stable version, `go test` will work as usual. For the `master` branch, similarly to installing, running the tests requires building a local libgit2 library, so the Makefile provides a wrapper that makes sure it's built
5151

52-
make test
52+
make test-static
5353

5454
Alternatively, you can build the library manually first and then run the tests
5555

5656
./script/build-libgit2-static.sh
57-
go test -v
57+
go test -v --tags "static" ./...
5858

5959
License
6060
-------

0 commit comments

Comments
 (0)