Hi All
I am a noob with Go and only started a few weeks back. I have just completed my first API service! Yay!!
I am using Go version 1.5.3 and godep's v60. I had the GO15VENDOREXPERIMENT set to 1, and when I ran "godep save ./..." created the new folder structure using the "./vendor" folder in the root directory.
I had two issues pop up:
1: When I committed it, our Travis CI script failed due to the GO Vet cmd the script runs checking the contents of the ./vendor folder. Is there anything options I need to run with go vet in this case?
Issue number 2 appeared when we did the following:
I deleted the Godeps folder and vendore folder. Then I set the GO15VENDOREXPERIMENT = 0 and ran "godep save ./.." I got the old "_workspace" folder in the "./Godeps" folder.
When our travis script ran "go get
github.com/onsi/ginkgo" it exit's with a error message displaying "stale checkout."
As my colleagues run godeps v52/5.2 We have notices that the godeps.json file dependancies differ a lot. v5.2 seams to record only the root of the dependancy such as:
"Comment": "r2015.12.06-2-g03c9f3e",
"Rev": "03c9f3ee4c14c8e51ee521a6a7d0425658dd6f64"
where as Godep's v60 produces the following:
{
"ImportPath": "gopkg.in/mgo.v2",
"Comment": "r2016.02.04-1-gb6e2fa3",
"Rev": "b6e2fa371e64216a45e61072a96d4e3859f169da"
},
{
"ImportPath": "gopkg.in/mgo.v2/bson",
"Comment": "r2016.02.04-1-gb6e2fa3",
"Rev": "b6e2fa371e64216a45e61072a96d4e3859f169da"
},
{
"ImportPath": "gopkg.in/mgo.v2/internal/sasl",
"Comment": "r2016.02.04-1-gb6e2fa3",
"Rev": "b6e2fa371e64216a45e61072a96d4e3859f169da"
},
{
"ImportPath": "gopkg.in/mgo.v2/internal/scram",
"Comment": "r2016.02.04-1-gb6e2fa3",
"Rev": "b6e2fa371e64216a45e61072a96d4e3859f169da"
}
When I manually removed the extra package dependancies, the TravisCI script completed normally and ran it's "go get..." command without any issues.
Has anyone com across this issue?
Lorne