From 549706bb573653469fbcc35c839759987c318d0c Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sat, 4 Sep 2021 20:07:24 -0700 Subject: Declare forward-compatibility with libgit2 v1.2.0 #minor (#800) We can't yet ship a fully libgit2 v1.2.0-compatible library due to a missing public symbol, but we can allow the v1.1.0-era codebase to link against libgit2 v1.2.0 in the meantime. --- Build_system_dynamic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Build_system_dynamic.go') diff --git a/Build_system_dynamic.go b/Build_system_dynamic.go index 3013804..348cdc8 100644 --- a/Build_system_dynamic.go +++ b/Build_system_dynamic.go @@ -7,8 +7,8 @@ package git #cgo CFLAGS: -DLIBGIT2_DYNAMIC #include -#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 1 -# error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.1.0" +#if LIBGIT2_VER_MAJOR != 1 || LIBGIT2_VER_MINOR < 1 || LIBGIT2_VER_MINOR > 2 +# error "Invalid libgit2 version; this git2go supports libgit2 between v1.1.0 and v1.2.0" #endif */ import "C" -- cgit v1.2.3