Live data from Hacker News

'Go mod download' (to cache) and 'go mod why' added

golang.org

11–13 of 13 posts

Re: 'Go mod download' (to cache) and 'go mod why' added

#11
post #9

Earlier quoted context omitted.

`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.

Here’s the issue it comes out of: https://github.com/golang/go/issues/26610

Wait, so this command was born out of necessity to get dep feature parity? This just gets better and better.

Re: 'Go mod download' (to cache) and 'go mod why' added

#12
post #11
post #9

Earlier quoted context omitted.

Here’s the issue it comes out of: https://github.com/golang/go/issues/26610

Wait, so this command was born out of necessity to get dep feature parity? This just gets better and better.

no 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.

Re: 'Go mod download' (to cache) and 'go mod why' added

#13
post #11

Earlier quoted context omitted.

Wait, so this command was born out of necessity to get dep feature parity? This just gets better and better.

no 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.

Categorically 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). Then after some twitter back-and-forth (https://twitter.com/sgnn7/status/1022547467466956802) the issue got reopened.

Post reply on HN