Skip to content

Commit 37d4d3d

Browse files
authored
Declare forward-compatibility with libgit2 v1.3.0 #minor (#843)
This commit marks this (Golang) version of git2go as being compatible with libgit2 v1.3.0.
1 parent 9b15518 commit 37d4d3d

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
matrix:
6464
libgit2:
6565
- '109b4c887ffb63962c7017a66fc4a1f48becb48e' # v1.2.0 with a fixed symbol
66+
- 'v1.3.0'
6667
name: Go (system-wide, dynamic)
6768

6869
runs-on: ubuntu-20.04

Build_bundled_static.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ package git
1010
#cgo CFLAGS: -DLIBGIT2_STATIC
1111
#include <git2.h>
1212
13-
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 2 || LIBGIT2_VER_MINOR > 2
14-
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.2.0"
13+
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 2 || LIBGIT2_VER_MINOR > 3
14+
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.3.0"
1515
#endif
1616
*/
1717
import "C"

Build_system_dynamic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ package git
88
#cgo CFLAGS: -DLIBGIT2_DYNAMIC
99
#include <git2.h>
1010
11-
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 2 || LIBGIT2_VER_MINOR > 2
12-
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.2.0"
11+
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 2 || LIBGIT2_VER_MINOR > 3
12+
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.3.0"
1313
#endif
1414
*/
1515
import "C"

Build_system_static.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ package git
88
#cgo CFLAGS: -DLIBGIT2_STATIC
99
#include <git2.h>
1010
11-
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 2 || LIBGIT2_VER_MINOR > 2
12-
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.2.0"
11+
#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 2 || LIBGIT2_VER_MINOR > 3
12+
# error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.3.0"
1313
#endif
1414
*/
1515
import "C"

0 commit comments

Comments
 (0)