From 13ca96065e6be3292c931cc580bbc125962b394e Mon Sep 17 00:00:00 2001 From: lhchavez Date: Thu, 2 Apr 2020 07:42:29 -0700 Subject: [PATCH] Uprev vendor/libgit2 to v1.0 This uprevs libgit2 to the latest and greatest. --- README.md | 13 +++++++------ git_dynamic.go | 4 ++-- git_static.go | 4 ++-- go.mod | 2 +- vendor/libgit2 | 2 +- 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index abcb4dd..6779c98 100644 --- a/README.md +++ b/README.md @@ -10,18 +10,19 @@ Due to the fact that Go 1.11 module versions have semantic meaning and don't nec | libgit2 | git2go | |---------|---------------| -| master | (will be v30) | +| master | (will be v31) | +| 1.0 | v30 | | 0.99 | v29 | | 0.28 | v28 | | 0.27 | v27 | -You can import them in your project with the version's major number as a suffix. For example, if you have libgit2 v0.99 installed, you'd import git2go v29 with +You can import them in your project with the version's major number as a suffix. For example, if you have libgit2 v1.0 installed, you'd import git2go v30 with ```sh -go get github.com/libgit2/git2go/v29 +go get github.com/libgit2/git2go/v30 ``` ```go -import "github.com/libgit2/git2go/v29" +import "github.com/libgit2/git2go/v30" ``` which will ensure there are no sudden changes to the API. @@ -42,10 +43,10 @@ This project wraps the functionality provided by libgit2. If you're using a vers ### Versioned branch, dynamic linking -When linking dynamically against a released version of libgit2, install it via your system's package manager. CGo will take care of finding its pkg-config file and set up the linking. Import via Go modules, e.g. to work against libgit2 v0.99 +When linking dynamically against a released version of libgit2, install it via your system's package manager. CGo will take care of finding its pkg-config file and set up the linking. Import via Go modules, e.g. to work against libgit2 v1.0 ```go -import "github.com/libgit2/git2go/v29" +import "github.com/libgit2/git2go/v30" ``` ### Master branch, or static linking diff --git a/git_dynamic.go b/git_dynamic.go index 9112954..b31083e 100644 --- a/git_dynamic.go +++ b/git_dynamic.go @@ -6,8 +6,8 @@ package git #include #cgo pkg-config: libgit2 -#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 99 -# error "Invalid libgit2 version; this git2go supports libgit2 v0.99" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR != 0 +# error "Invalid libgit2 version; this git2go supports libgit2 v1.0" #endif */ diff --git a/git_static.go b/git_static.go index 4dcb1db..46865fb 100644 --- a/git_static.go +++ b/git_static.go @@ -8,8 +8,8 @@ package git #cgo !windows pkg-config: --static ${SRCDIR}/static-build/install/lib/pkgconfig/libgit2.pc #include -#if LIBGIT2_VER_MAJOR != 0 || LIBGIT2_VER_MINOR != 99 -# error "Invalid libgit2 version; this git2go supports libgit2 v0.99" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR != 0 +# error "Invalid libgit2 version; this git2go supports libgit2 v1.0" #endif */ diff --git a/go.mod b/go.mod index 4dffd7c..ee2b6e7 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/libgit2/git2go/v29 +module github.com/libgit2/git2go/v30 go 1.13 diff --git a/vendor/libgit2 b/vendor/libgit2 index 1722390..7d3c705 160000 --- a/vendor/libgit2 +++ b/vendor/libgit2 @@ -1 +1 @@ -Subproject commit 172239021f7ba04fe7327647b213799853a9eb89 +Subproject commit 7d3c7057f0e774aecd6fc4ef8333e69e5c4873e0