]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: update go help packages doc on all pattern to focus on modules
authorMichael Matloob <matloob@golang.org>
Mon, 16 Sep 2024 18:04:24 +0000 (14:04 -0400)
committerMichael Matloob <matloob@golang.org>
Tue, 17 Sep 2024 20:44:51 +0000 (20:44 +0000)
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>

src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index 7993420a8fa23861267f98f95e0e36db8cc41137..286c1ddcbbfc28c0d52801bd9411181f4b963c88 100644 (file)
 //
 // - "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.
index b1f3563280835fece8e975acedce4b1582cd5d77..dac52c4b639af8a51d5f886faa867bfc75af7101 100644 (file)
@@ -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.