Reputation: 14279
I'm just "getting" all required libraries by using go get ./...
and go-get happily downloads all libs which are imported directly from github.com, however I get the error:
src/github.com/urfave/cli/altsrc/yaml_file_loader.go:17:2: cannot find package "gopkg.in/yaml.v2" in any of:
/home/ci/.jenkins/tools/org.jenkinsci.plugins.golang.GolangInstallation/Go_1.6/src/gopkg.in/yaml.v2 (from $GOROOT)
/home/ci/.jenkins/jobs/BlenderRender-Client/workspace/src/gopkg.in/yaml.v2 (from $GOPATH)
Sure, I could go get gopkg.in/yaml.v2
and it would work, however I'm setting up a CI server to automatically compile my project and I'd rather have go get ./...
just download everything and not complain about gopkg.in-packets since I don't want to reconfigure my CI server every time some requirement changes.
Is there a way to tell go get ./...
that it's fine to download gopkg.in
packets?
Upvotes: 2
Views: 4962
Reputation: 1085
Apparently you have issues with get, try go get -v gopkg.in/yaml.v2
and you'll face an error if you have git <=1.7.1
Just upgrade your git client, and problem fixed
You can also solve this by cloning the yaml.v2 repo into :
/home/ci/.jenkins/jobs/BlenderRender-Client/workspace/src/gopkg.in/yaml.v2
run a git clone https://github.com/go-yaml/yaml.git /home/ci/.jenkins/jobs/BlenderRender-Client/workspace/src/gopkg.in/yaml.v2
Upvotes: 2