diff options
author | Jay Conrod <jayconrod@google.com> | 2020-03-24 13:33:46 -0400 |
---|---|---|
committer | Jay Conrod <jayconrod@google.com> | 2020-03-24 19:11:16 +0000 |
commit | f95ff37cb06652b5b4dd244e72b939a36258c273 (patch) | |
tree | 31c06888a8ae372f1bb5a3668a62578dcd5e6f15 /src/cmd/go/internal/modcmd/download.go | |
parent | c785633941299f5a0f76b5689b3becf47e1239b2 (diff) | |
download | go-f95ff37cb06652b5b4dd244e72b939a36258c273.tar.gz go-f95ff37cb06652b5b4dd244e72b939a36258c273.zip |
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>
Diffstat (limited to 'src/cmd/go/internal/modcmd/download.go')
-rw-r--r-- | src/cmd/go/internal/modcmd/download.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/go/internal/modcmd/download.go b/src/cmd/go/internal/modcmd/download.go index 7d5294dcd0..584434935b 100644 --- a/src/cmd/go/internal/modcmd/download.go +++ b/src/cmd/go/internal/modcmd/download.go @@ -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 |