From 72510e9d3ab25cb3ab56dba62d2d7a2c9fe236ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Mon, 16 Oct 2017 15:14:26 +0200 Subject: [PATCH 1/2] README: master wants to use install-static --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 580ed26..abf49c4 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,9 @@ If using `master` or building a branch statically, we need to build libgit2 firs 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. git submodule update --init # get libgit2 - make install + make install-static -will compile libgit2, link it into git2go and install it. +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. Parallelism and network operations ---------------------------------- -- 2.45.2 From cd779176d12785405a65e4286d317f42a245777e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Mon, 16 Oct 2017 15:36:57 +0200 Subject: [PATCH 2/2] README: correct the branches in the testing block --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index abf49c4..4bd2e7e 100644 --- a/README.md +++ b/README.md @@ -47,14 +47,14 @@ libgit2 may use OpenSSL and LibSSH2 for performing encrypted network connections Running the tests ----------------- -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 +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 - make test + make test-static Alternatively, you can build the library manually first and then run the tests ./script/build-libgit2-static.sh - go test -v + go test -v --tags "static" ./... License ------- -- 2.45.2