From: Michael Matloob Date: Mon, 16 Sep 2024 18:04:24 +0000 (-0400) Subject: cmd/go: update go help packages doc on all pattern to focus on modules X-Git-Tag: go1.24rc1~883 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b049837d97d340f0693871c64bc957eabc71d017;p=gostls13.git 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 LUCI-TryBot-Result: Go LUCI --- 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.