Closed StephenPCG closed 7 years ago
Yes, we noticed this today when a travis build failed. @Civil will patch this.
Please check if master now works for you
It works now!
Glad to hear!
As dep is still in Alpha phase and it's format stabilization is planed for May, this may happen in future. So please open a new issue if you'll spot that sooner than we do. But I hope there won't be a lot of that issues in future.
It's not working again here, dep ensure
complains solve error: No versions of github.com/gogo/protobuf met constraints
(full output is pasted above).
With carbonzipper, a second dep ensure
will succeed, but with carbonapi, dep ensure
just keeps complaining.
I don't know too much about dep
, what does dep ensure
do? Does it recursively ensure
all downloaded dependencies? Or should it be possible that it just fails due to my slow network?
BTW, github.com/gogo/protobuf
is too large, it's about 21MB to clone, my network speed to github is just about 60KB/s, it's painful long running dep ensure
everytime (I'm building docker images, so env is always clean each time). Are there any better ways to same this time?
I'll remove gogo/protobuf dependency, it's now obsolete.
But I think that won't fully solve your problem. Currently most of vendoring types relies on fetching everything from git on each clean build. If that bothers you, I suggest you to find a way to cache GOPATH and preserve it between builds.
Maybe it's really due to the poor network in my company. I tried several times at home hours ago, and always succeeded. I guess there maybe a timeout while dep ensure
cloneing repositories. If network is really the problem, I'm sure going to find a way to cache GOPATH.
Ok, I've checked and actually I can't remove gogo/protobuf from the dependeices, as carbonzipperpb3 imports it. Sorry, but the only option is to cache GOPATH. This will also significantly speedup 'dep ensure'.
problem 1
dep
has switched to use toml for manifest and lock file, right after carbonzipper and carbonapi started using dep.From a clean env (dep not installed),
make
would fail:If I install an old version of dep (e.g. 4105d3a), dep won't complain on this. Maybe you should update your local dep and re-
dep init
.problem 2
In a clean env,
dep ensure
would fail with the following error:I'm not familiar with dep, I don't know what's going wrong...