From f95ff37cb06652b5b4dd244e72b939a36258c273 Mon Sep 17 00:00:00 2001 From: Jay Conrod Date: Tue, 24 Mar 2020 13:33:46 -0400 Subject: [PATCH] cmd/go: clarify behavior with no arguments in 'go help mod download' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit '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 Reviewed-by: Daniel Martí Reviewed-by: Bryan C. Mills TryBot-Result: Gobot Gobot --- src/cmd/go/alldocs.go | 3 ++- src/cmd/go/internal/modcmd/download.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index c2678c3dd3c..ef054c89388 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -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 diff --git a/src/cmd/go/internal/modcmd/download.go b/src/cmd/go/internal/modcmd/download.go index 7d5294dcd00..584434935b4 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