1
0
mirror of https://github.com/golang/go synced 2024-11-27 05:11:22 -07:00

cmd/go: clarify behavior with no arguments in 'go help mod download'

'go mod download' is equivalent to 'go mod download all'.

Fixes #38031

Change-Id: I7aec7e5a1370a3e248eba6daad9a75ec21f33a83
Reviewed-on: https://go-review.googlesource.com/c/go/+/225201
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Jay Conrod 2020-03-24 13:33:46 -04:00
parent c785633941
commit f95ff37cb0
2 changed files with 4 additions and 2 deletions

View File

@ -1017,7 +1017,8 @@
//
// Download downloads the named modules, which can be module patterns selecting
// dependencies of the main module or module queries of the form path@version.
// With no arguments, download applies to all dependencies of the main module.
// With no arguments, download applies to all dependencies of the main module
// (equivalent to 'go mod download all').
//
// The go command will automatically download modules as needed during ordinary
// execution. The "go mod download" command is useful mainly for pre-filling

View File

@ -24,7 +24,8 @@ var cmdDownload = &base.Command{
Long: `
Download downloads the named modules, which can be module patterns selecting
dependencies of the main module or module queries of the form path@version.
With no arguments, download applies to all dependencies of the main module.
With no arguments, download applies to all dependencies of the main module
(equivalent to 'go mod download all').
The go command will automatically download modules as needed during ordinary
execution. The "go mod download" command is useful mainly for pre-filling