Commit Graph

31 Commits

Author SHA1 Message Date
lhchavez be5a99a807
Rename the default branch to `main` (#786)
We've renamed the default branch from `master` to `main`, so we need to
change a bunch of references to that.
2021-09-04 13:33:34 -07:00
Suhaib Mujahid ad3ec3664d
Create v31 to support libgit2 v1.1.x (#668)
The libgit2 `v1.1.0` is released two weeks ago. This PR allows `git2go` to link against the new version.
2020-10-26 18:09:26 -07:00
lhchavez 5314951759
Refresh the GitHub Actions CI (#632)
This change:

* Builds the library with Go 1.14, too.
* Builds the non-legacy tests with Ubuntu Focal (20.04).
* Adds testing for system-wide libraries, both static and dynamic
  versions.
* Fixes a typo in the README.
2020-08-15 17:19:53 -07:00
lhchavez 20a55cdf92
Revamp the ways in which the library can be built (#621)
This change allows to link the system version of libgit2 statically.
Since `-tags static` is already used for the bundled version of the
library and to avoid breaking old workflows, `-tags
static,system_libgit2` is now used to select that.

This means that the valid combinations are:

| Flag                          | Effect                                        |
|-------------------------------|-----------------------------------------------|
| _No flags_                    | Dynamically-linked against the system libgit2 |
| `-tags static,system_libgit2` | Statically-linked against the system libgit2  |
| `-tags static`                | Statically-linked against the bundled libgit2 |

Note that there is no way to express dynamically linking against the
bundled libgit2 because that makes very little sense, since the binaries
wouldn't be able to be distributed. If that's still desired, the
`PKG_CONFIG_PATH` environment variable can set before building the code.
[`Makefile`](https://github.com/libgit2/git2go/blob/master/Makefile) has
an example of how it is used in the CI.
2020-06-21 15:40:52 -07:00
lhchavez 9eaf4fed5f
Update the `README.md` to clarify some aspects of static libgit2 (#620)
This change improves the documentation surrounding libgit2 static builds
and modules.

Fixes: #618
2020-06-20 16:24:46 -07:00
lhchavez 13ca96065e Uprev vendor/libgit2 to v1.0
This uprevs libgit2 to the latest and greatest.
2020-04-02 07:53:59 -07:00
Suhaib Mujahid 3a2102638d Update README.md 2020-03-23 18:22:12 -07:00
lhchavez 2b66c0f9e7
Update README.md
Clarifying the versions since we're using Go 1.11 module version rules now.
2020-03-19 08:50:28 -07:00
Carlos Martín Nieto cd779176d1 README: correct the branches in the testing block 2017-10-16 15:36:57 +02:00
Carlos Martín Nieto 72510e9d3a README: master wants to use install-static 2017-10-16 15:14:26 +02:00
reujab 24637b369f a MIT -> an MIT 2017-07-11 23:58:08 -04:00
Carlos Martín Nieto b020c1140a Update the description of the branches in README. 2017-01-20 13:48:39 +00:00
Carlos Martín Nieto 9c5fb973fc Get rid of the with-static.sh script
CGO can perform variable substitution in the directives, so we don't
need to use a script to set up the variables; we can let the go tool do
it for us.
2016-11-01 00:17:51 +01:00
jbranchaud b1d97c1ebd Fix typo in README: manaager -> manager 2015-10-06 15:12:49 -05:00
Andreas Beer 08d30893b6 Headline typo 2015-07-29 11:28:34 +02:00
Andreas Beer 47d82916e2 Typos/unclarities in readme. 2015-07-29 11:28:05 +02:00
Carlos Martín Nieto 1b44c0a234 Add a bit more on next vs master 2015-03-15 01:21:21 +01:00
Carlos Martín Nieto 76d600f7b3 Correct README on what master tracks
The second mention still said that master tracks master. Add a mention
of next which will become the branch to track upstream tip.
2015-03-15 00:46:15 +01:00
Carlos Martín Nieto 57412d0293 Explain the difference between dynamic and static versions
With the release of libgit2 v0.22 we can link against a version of
library we've wrapped in more than a PoC sense.

Explain the difference and say how to use each version.
2015-01-14 14:11:19 +01:00
Carlos Martín Nieto 752a4f0497 Merge pull request #146 from stevenwilkin/add-build-status
Add build status to README
2014-12-05 16:41:23 +01:00
Steven Wilkin 9b0ba12c34 Add build status to README 2014-12-04 19:51:41 +00:00
Carlos Martín Nieto 1d759e3697 Update to master 2014-12-03 17:26:55 +01:00
Carlos Martín Nieto 98299e65fb README: add -d flag to 'go get'
To make sure it doesn't try to build it.
2014-10-31 23:20:57 +01:00
Amanpreet Singh fd312d354f Updates README.md to include GoDoc badge. 2014-10-28 23:10:35 +05:30
Bartosz Gęza f48c27e43c Fix a typo in git2go path 2014-07-12 20:49:50 +02:00
Carlos Martín Nieto c7ac950815 Update README
Specify that we stick to the release and how to run the tests.
2014-07-03 08:47:38 +02:00
Carlos Martín Nieto 10c058dcb9 Upate README with static instructions 2014-06-07 19:22:09 +02:00
Carlos Martín Nieto c734fc2a6b 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.
2014-06-07 03:03:04 +02:00
Vicent Marti 4819b36b67 Update README 2013-03-06 17:06:01 +01:00
Carlos Martín Nieto 1926f913b3 My username is carlosmn 2013-03-05 21:00:31 +01:00
Vicent Marti b1d50b70ea Initial commit 2013-03-05 20:53:04 +01:00