mirror of
https://github.com/golang/go
synced 2024-11-23 10:20:03 -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:
parent
c785633941
commit
f95ff37cb0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user