]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clarify stderr behavior for 'go help mod download'
authorJay Conrod <jayconrod@google.com>
Fri, 3 Jan 2020 18:13:57 +0000 (13:13 -0500)
committerJay Conrod <jayconrod@google.com>
Fri, 3 Jan 2020 21:16:40 +0000 (21:16 +0000)
Fixes #36297

Change-Id: I2623e9ee386644eddfa9a348ba368c5f1a81f893
Reviewed-on: https://go-review.googlesource.com/c/go/+/213134
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/download.go

index f91a04fb4cc8ffcff1c2ffcaf2a5163489d7e50b..342a947e11af02d4436466aaca390e34618b5a38 100644 (file)
 // execution. The "go mod download" command is useful mainly for pre-filling
 // the local cache or to compute the answers for a Go module proxy.
 //
-// By default, download reports errors to standard error but is otherwise silent.
+// By default, download writes nothing to standard output. It may print progress
+// messages and errors to standard error.
+//
 // The -json flag causes download to print a sequence of JSON objects
 // to standard output, describing each downloaded module (or failure),
 // corresponding to this Go struct:
index 5db0e46c644f0e8bfb1bebb17e8d10b714bb586f..7d5294dcd00f69b36d0032bb58e7f3f86311b1ab 100644 (file)
@@ -30,7 +30,9 @@ The go command will automatically download modules as needed during ordinary
 execution. The "go mod download" command is useful mainly for pre-filling
 the local cache or to compute the answers for a Go module proxy.
 
-By default, download reports errors to standard error but is otherwise silent.
+By default, download writes nothing to standard output. It may print progress
+messages and errors to standard error.
+
 The -json flag causes download to print a sequence of JSON objects
 to standard output, describing each downloaded module (or failure),
 corresponding to this Go struct: