(no title)
Goopplesoft | 8 years ago
I’ve used it and it works great (much better than glide, gb et al) but I don’t see it in the wild too often.
Goopplesoft | 8 years ago
I’ve used it and it works great (much better than glide, gb et al) but I don’t see it in the wild too often.
pjmlp|8 years ago
https://research.swtch.com/vgo
chimeracoder|8 years ago
Dep will have a clean migration path to vgo, and the latter isn't really production-ready yet.
For now, I'd recommend using dep for daily use, until you have a compelling reason to switch to vgo, at which point the migration will probably be automatic.
kitd|8 years ago
Go's dependency management story is starting to resemble JS's modules story :(
lobster_johnson|8 years ago
Sam Boyer's follow-up is interesting reading [2]. I get the feeling that despite their ongoing discussions, the Dep team was/felt ambushed by this move.
[1] https://research.swtch.com/vgo-intro
[2] https://sdboyer.io/blog/vgo-and-dep/
lobster_johnson|8 years ago
My only criticism is that "dep ensure" will actually parse the code to discover dependencies through import statements, which is also what Glide does. To me, this is antithetical to the purpose of a Gopkg.toml/lock file. In other words, Dep's full list of dependencies isn't actually in the Gopkg.toml file; it's a sum of Gopkg.toml and your code. That is confusing.
My desired behaviour:
* "dep ensure" should always used the lock file, nothing else, to install;
* "dep ensure -update" should update the lock file to what is specified in Gopkg.toml (and only that);
* "dep ensure -add" (which I think should be "dep add") should b required to add new dependencies to the Gopkg.toml file.
Aside: I wish Go projects weren't stuck with BSD style flags (-update instead of --update). GNU style is more common and arguably more practical. I applaud whenever a project (e.g. Prometheus, recently) finally sees sense and goes over to GNU flags.
tynorf|8 years ago
Though supporting `-flag` does remove the very nice combining of short flags.
latchkey|8 years ago
nzoschke|8 years ago
I think it’s the right choice for now. It was going to be the one true solution and many people have stopped working on the alternatives.
We’ll see where vgo lands, but dep is very practical right now.