aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2024-09-16 14:04:24 -0400
committerMichael Matloob <matloob@golang.org>2024-09-17 20:44:51 +0000
commitb049837d97d340f0693871c64bc957eabc71d017 (patch)
treeb0929d88f6a6b22697f56219c4278785feebbb82 /src
parentefbf4b0713b76891f2476e54e15117649af94144 (diff)
downloadgo-b049837d97d340f0693871c64bc957eabc71d017.tar.xz
cmd/go: update go help packages doc on all pattern to focus on modules
Reword the paragraph to focus on modules rather than GOPATH mode. Change-Id: Ide33d502311b3539018f167386a92a94ff955f1f Reviewed-on: https://go-review.googlesource.com/c/go/+/613555 Reviewed-by: Sam Thanawalla <samthanawalla@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/go/alldocs.go8
-rw-r--r--src/cmd/go/internal/help/helpdoc.go8
2 files changed, 6 insertions, 10 deletions
diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go
index 7993420a8f..286c1ddcbb 100644
--- a/src/cmd/go/alldocs.go
+++ b/src/cmd/go/alldocs.go
@@ -2934,11 +2934,9 @@
//
// - "main" denotes the top-level package in a stand-alone executable.
//
-// - "all" expands to all packages found in all the GOPATH
-// trees. For example, 'go list all' lists all the packages on the local
-// system. When using modules, "all" expands to all packages in
-// the main module and their dependencies, including dependencies
-// needed by tests of any of those.
+// - "all" expands to all packages in the main module (or workspace modules) and
+// their dependencies, including dependencies needed by tests of any of those. In
+// GOPATH mode, "all" expands to all packages found in all the GOPATH trees.
//
// - "std" is like all but expands to just the packages in the standard
// Go library.
diff --git a/src/cmd/go/internal/help/helpdoc.go b/src/cmd/go/internal/help/helpdoc.go
index b1f3563280..dac52c4b63 100644
--- a/src/cmd/go/internal/help/helpdoc.go
+++ b/src/cmd/go/internal/help/helpdoc.go
@@ -54,11 +54,9 @@ for packages to be built with the go tool:
- "main" denotes the top-level package in a stand-alone executable.
-- "all" expands to all packages found in all the GOPATH
-trees. For example, 'go list all' lists all the packages on the local
-system. When using modules, "all" expands to all packages in
-the main module and their dependencies, including dependencies
-needed by tests of any of those.
+- "all" expands to all packages in the main module (or workspace modules) and
+their dependencies, including dependencies needed by tests of any of those. In
+GOPATH mode, "all" expands to all packages found in all the GOPATH trees.
- "std" is like all but expands to just the packages in the standard
Go library.