mirror of
https://github.com/grdl/git-get.git
synced 2026-02-05 12:33:47 +00:00
30205fbbdfcc31824f93b3a37d89f9008089874d
git-get
Build
How to build with libgit2 statically linked into a single executable without dependencies:
-
Install development packages for libssh2 and openssl:
sudo apt install libssh2-1-del libssl-dev -
git2golibrary is added as a submodule (pointing to a correct v30 release). This, in turn, containslibgit2submodule. To ensure the submodules are cloned run:git submodule update --init --recursive -
build the static
git2golibrary:cd static/git2go && make install-static -
ensure our
git-getmodule uses the staticgit2golibrary instead of the one downloaded by Go modules by having the following line ingo.mod:replace github.com/libgit2/git2go/v30 => ./static/git2go -
build
git-getwith--tags staticflag:go build -i --tags static
Languages
Go
98.5%
Makefile
1.5%