|
|
|
|
|
by lobster_johnson
3025 days ago
|
|
We use Dep. It's good, much better than the buggy mess that is/was Glide. 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. |
|
Though supporting `-flag` does remove the very nice combining of short flags.