]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clarify behavior with no arguments in 'go help mod download'
authorJay Conrod <jayconrod@google.com>
Tue, 24 Mar 2020 17:33:46 +0000 (13:33 -0400)
committerJay Conrod <jayconrod@google.com>
Tue, 24 Mar 2020 19:11:16 +0000 (19:11 +0000)
'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>

src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/download.go

index c2678c3dd3c5e79457e12177b11444f6fbcc2c98..ef054c893886ca4050d1d1472ec8b2adc43341cf 100644 (file)
 //
 // 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
index 7d5294dcd00f69b36d0032bb58e7f3f86311b1ab..584434935b4bb838a0c81b7e42818946e7011052 100644 (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