6 ms·
'Go mod download' (to cache) and 'go mod why' added
- chx 8y agoThat's real funny. Remember https://twitter.com/_rsc/status/1022589123482267650 https://twitter.com/_rsc/status/1022589123482267650 ? > If we just put 'go dep' as the hook to current draft dep, then users would need to run things like 'go dep ensure' and so on, and those would be the first ever go sub-sub-commands. That feels not quite right to me.
- secure 8y agogo mod started out with a bunch of flags, and was only later converted to the current syntax: https://github.com/golang/go/commit/6121987a10b2c54bc4c48473353205753d91f807 https://github.com/golang/go/commit/6121987a10b2c54bc4c48473... From the commit message: > We've avoided subcommands in the go command to date, and we should continue to avoid adding them unless it really makes the experience significantly better. In this case, it does. So, I don’t see it as a contradiction to the mail you’re quoting :)
- lclarkmichalek 8y ago`go mod download` is for explicitly populating the cache. If you just run `go build`, the cache will be implicitly populated. You don't need to run `go mod download` before doing a build.
- llimllib 8y agoHere’s the issue it comes out of: https://github.com/golang/go/issues/26610 https://github.com/golang/go/issues/26610
- chx 8y agoWait, so this command was born out of necessity to get dep feature parity? This just gets better and better.
- bketelsen 8y agono it was added at the request of the athens project (github.com/gomods/athens) so there would be a canonical way to download modules that we could use to prime the cache.
- sgnnseven 8y agoCategorically wrong - please don't spread lies. I opened the original issue in question due to lack of feature parity and it got quickly closed (https://github.com/golang/go/issues/26610#event-1753880630 https://github.com/golang/go/issues/26610#event-1753880630). Then after some twitter back-and-forth (https://twitter.com/sgnn7/status/1022547467466956802 https://twitter.com/sgnn7/status/1022547467466956802) the issue got reopened.
- jwilk 8y agoThis can be viewed with JS disabled: https://github.com/golang/go/commit/7aa9855704a766a1a16fbed79f9f6e34fc83bdf0 https://github.com/golang/go/commit/7aa9855704a766a1a16fbed7...
- stochastic_monk 8y ago“go mod why” sounds shockingly close to “Oh god why”. I’d assume this is intentional, but it still strikes me as odd.
- andrewchambers 8y agoI don't know why you would assume that at all.
- deleted 8y ago[deleted]
- frakturfreund 8y agogo mod why generics (main module does not need package generics)