could not determine kind of name for C.git_buf_dispose #617
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#617
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
error is :
./../pkg/mod/github.com/libgit2/git2go/v29@v29.0.2/branch.go:211:8: could not determine kind of name for C.git_buf_dispose
centos:
my libgit2 is :0.99.0
pkg-config --modversion libgit2
0.99.0
[root@b2041d067d45 gitProxy]# go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/root/go/src/gitProxy/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build524585300=/tmp/go-build -gno-record-gcc-switches"
hmm I'm unable to reproduce this :S
I met the same issue.
my Dockerfile
And error i get
my go.md file
@IamGabrielWu the
golang:1.14
Docker container is based on Buster, which uses libgit 0.27. You might need to either use thev27
branch for git2go or statically build the library for the bundled version.thanks @lhchavez
after switching to libgit 0.27 it fixed my problem.
for others having this issue, you can reference my files.
Dockerfile
And i used "gopkg.in/libgit2/git2go.v27 v27.10.0"
also i did a bit of adjustment for function "credentialsCallback". It seems there's a bit of change for this function between in git2go v30 and v27.