Compare commits

..

5 Commits
v0.1.0 ... main

Author SHA1 Message Date
Jeff Carr 9c30d41e40 using /opt/libgit2 for test builds 2025-02-14 17:57:12 -06:00
Jeff Carr c9a7e84e5b try build against 1.8.x
Signed-off-by: Jeff Carr <jcarr@wit.com>
2025-01-05 01:21:58 -06:00
Jeff Carr a4ee4aafbc lame
Signed-off-by: Jeff Carr <jcarr@wit.com>
2024-12-17 22:04:22 -06:00
Jeff Carr cf84056045 Merge branch 'devel' 2024-12-17 15:02:44 -06:00
Jeff Carr d5a0e0056f better gitpb 2024-12-17 13:19:35 -06:00
2 changed files with 10 additions and 3 deletions

View File

@ -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"

View File

@ -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) ./...
LD_LIBRARY_PATH=/opt/libgit2 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 ./...