Compare commits
No commits in common. "main" and "v0.1.0" have entirely different histories.
|
@ -5,10 +5,8 @@ package git
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo pkg-config: libgit2
|
#cgo pkg-config: libgit2
|
||||||
#cgo CFLAGS: -DLIBGIT2_DYNAMIC -I/opt/libgit2/include
|
#cgo CFLAGS: -DLIBGIT2_DYNAMIC
|
||||||
#cgo LDFLAGS: -L/opt/libgit2 -lgit2
|
|
||||||
#include <git2.h>
|
#include <git2.h>
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -1,7 +1,5 @@
|
||||||
TEST_ARGS ?= --count=1
|
TEST_ARGS ?= --count=1
|
||||||
|
|
||||||
PKG_CONFIG_PATH=/opt/libgit2/
|
|
||||||
|
|
||||||
default: goimports test
|
default: goimports test
|
||||||
|
|
||||||
goimports:
|
goimports:
|
||||||
|
@ -14,12 +12,9 @@ generate: static-build/install/lib/libgit2.a
|
||||||
# ==============
|
# ==============
|
||||||
# This uses whatever version of libgit2 can be found in the system.
|
# This uses whatever version of libgit2 can be found in the system.
|
||||||
test:
|
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 run script/check-MakeGitError-thread-lock.go
|
||||||
LD_LIBRARY_PATH=/opt/libgit2 PKG_CONFIG_PATH=/opt/libgit2/ go test -v -x $(TEST_ARGS) ./...
|
go test $(TEST_ARGS) ./...
|
||||||
|
|
||||||
add-remote:
|
|
||||||
git remote add git2go https://github.com/libgit2/git2go.git
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
go install ./...
|
go install ./...
|
||||||
|
|
Loading…
Reference in New Issue