Thanks to visit codestin.com
Credit goes to github.com

Skip to content

error: cannot find package "github.com/libgit2/git2go/v34" #73

Description

@bshaffer

I am getting the following error when compiling splitsh on github. here is my script:

+ go get github.com/splitsh/lite
cannot find package "github.com/libgit2/git2go/v34" in any of:
	/opt/hostedtoolcache/go/1.20.11/x64/src/github.com/libgit2/git2go/v34 (from $GOROOT)
	/home/runner/work/google-cloud-php/google-cloud-php/.split/go/src/github.com/libgit2/git2go/v34 (from $GOPATH)
mkdir $1
export GOPATH=$1/go

go env -w GO111MODULE=off
go get -d github.com/libgit2/git2go
cd $GOPATH/src/github.com/libgit2/git2go
git checkout next
git submodule update --init
make install

go get github.com/splitsh/lite
go build -o $1/splitsh-lite github.com/splitsh/lite

My github action is using ubuntu-latest. I think the issue has to do with the new tag for v2.0.0. I am actively debugging it, and plan to either follow the guide in #64 or try to roll it back.

I just wanted to submit this issue here also, in case it's helpful to someone else!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions