try build against 1.8.x
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
a4ee4aafbc
commit
c9a7e84e5b
Notes:
Jeff Carr
2025-01-05 12:35:05 -06:00
// `autogen:go.mod` module go.wit.com/lib/libgit2 go 1.21 toolchain go1.23.4 require ( github.com/ProtonMail/go-crypto v1.1.3 github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 golang.org/x/crypto v0.31.0 ) require ( github.com/cloudflare/circl v1.3.7 // indirect golang.org/x/sys v0.28.0 // indirect ) // `autogen:go.sum` github.com/ProtonMail/go-crypto v1.1.3 h1:nRBOetoydLeUb4nHajyO2bKqMLfWQ/ZPwkXqXxPxCFk= github.com/ProtonMail/go-crypto v1.1.3/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU= github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.27.0 h1:WP60Sv1nlK1T6SupCHbXzSaN0b9wUmsPoRS9b61A23Q= golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= // `autogen:`
|
@ -5,8 +5,10 @@ package git
|
|||
|
||||
/*
|
||||
#cgo pkg-config: libgit2
|
||||
#cgo CFLAGS: -DLIBGIT2_DYNAMIC
|
||||
#cgo CFLAGS: -DLIBGIT2_DYNAMIC -I/opt/libgit2/include
|
||||
#cgo LDFLAGS: -L/opt/libgit2 -lgit2
|
||||
#include <git2.h>
|
||||
|
||||
|
||||
*/
|
||||
import "C"
|
||||
|
|
9
Makefile
9
Makefile
|
@ -1,5 +1,7 @@
|
|||
TEST_ARGS ?= --count=1
|
||||
|
||||
PKG_CONFIG_PATH=/opt/libgit2/
|
||||
|
||||
default: goimports test
|
||||
|
||||
goimports:
|
||||
|
@ -12,9 +14,12 @@ generate: static-build/install/lib/libgit2.a
|
|||
# ==============
|
||||
# This uses whatever version of libgit2 can be found in the system.
|
||||
test:
|
||||
go-mod-clean # go install go.wit.com/apps/go-mod-clean@latest
|
||||
-go-mod-clean # go install go.wit.com/apps/go-mod-clean@latest
|
||||
go run script/check-MakeGitError-thread-lock.go
|
||||
go test $(TEST_ARGS) ./...
|
||||
PKG_CONFIG_PATH=/opt/libgit2/ go test -v -x $(TEST_ARGS) ./...
|
||||
|
||||
add-remote:
|
||||
git remote add git2go https://github.com/libgit2/git2go.git
|
||||
|
||||
install:
|
||||
go install ./...
|
||||
|
|
Loading…
Reference in New Issue