Skip to content

Not able to follow OSX installation instructions #53

@asfaltboy

Description

@asfaltboy

First I follow the README and do:

$ go get gopkg.in/libgit2/git2go.v23

# gopkg.in/libgit2/git2go.v23
could not determine kind of name for C.GIT_CHECKOUT_DONT_WRITE_INDEX
could not determine kind of name for C.GIT_CHECKOUT_RECREATE_MISSING

I ignore the errors and continue with the README.

Then I read this note

OSX El Capitan users may encounter the following error

could not determine kind of name for C.GIT_CHECKOUT_SAFE_CREATE

when running

$ go get gopkg.in/libgit2/git2go.v22

So I follow to the libgit2 issue thread and try

$ brew unlink libgit2
$ brew install https://raw.githubusercontent.com/Homebrew/homebrew/d6a9bb6adeb2043c5c5e9ba3a878decdefc1d240/Library/Formula/libgit2.rb
$ brew switch libgit2 0.22.3
$ go get gopkg.in/libgit2/git2go.v22

Happy to see no errors return, I continue to build:

$ git clone numa08/git-gitlab
$ cd git-gitlab
$ make build
go build -o build/git-lab
global-gitconfig.go:5:2: cannot find package "gopkg.in/libgit2/git2go.v24" in any of:
	/usr/local/Cellar/go/1.7.3/libexec/src/gopkg.in/libgit2/git2go.v24 (from $GOROOT)
	/Users/pavel/dev/go/src/gopkg.in/libgit2/git2go.v24 (from $GOPATH)
make: *** [build] Error 1

So now it needs v24 of git2go ? What is going on here? I try

go get gopkg.in/libgit2/git2go.v24
# gopkg.in/libgit2/git2go.v24
could not determine kind of name for C.GIT_CHECKOUT_DONT_WRITE_INDEX
could not determine kind of name for C.GIT_CHECKOUT_RECREATE_MISSING

Nothing seems right... is there a workaround I'm missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions