cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Govendor is throwing below error

$ govendor fetch github.com/neo4j/neo4j-go-driver

cd E:\projects\go.cache\govendor\github.com\neo4j\neo4j-go-driver; git reset --hard origin/master

fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
Error: failed to sync to latest revision exit status 128
Failed to fetch package "github.com/neo4j/neo4j-go-driver"
github.com/kardianos/govendor/context.(*Context).Alter
E:/projects/go/src/github.com/kardianos/govendor/context/modify.go:712
github.com/kardianos/govendor/run.(*runner).Modify
E:/projects/go/src/github.com/kardianos/govendor/run/modify.go:152

  • Go
1 REPLY 1

Sorry for the late reply @sandeepmeenuga.

Looking into the issue, it seems that it's assumed that there will be a master branch, which at this time neo4j-go-driver and gobolt do not have one which means you'll have to put in a bit more effort. It looks like you can just supply the version as such.

Due note that you'll have to install gobolt first since neo4j-go-driver depends on gobolt and will fail since gobolt doesn't have a master branch.

govendor fetch https://github.com/neo4j-drivers/gobolt@1.7
govendor fetch github.com/neo4j/neo4j-go-driver/neo4j/@1.7

Hopefully that works for you!