1
0
mirror of https://github.com/golang/go synced 2024-11-22 08:44:41 -07:00

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>
This commit is contained in:
Michael Matloob 2024-09-16 14:04:24 -04:00
parent efbf4b0713
commit b049837d97
2 changed files with 6 additions and 10 deletions

View File

@ -2934,11 +2934,9 @@
// //
// - "main" denotes the top-level package in a stand-alone executable. // - "main" denotes the top-level package in a stand-alone executable.
// //
// - "all" expands to all packages found in all the GOPATH // - "all" expands to all packages in the main module (or workspace modules) and
// trees. For example, 'go list all' lists all the packages on the local // their dependencies, including dependencies needed by tests of any of those. In
// system. When using modules, "all" expands to all packages in // GOPATH mode, "all" expands to all packages found in all the GOPATH trees.
// the main module and their dependencies, including dependencies
// needed by tests of any of those.
// //
// - "std" is like all but expands to just the packages in the standard // - "std" is like all but expands to just the packages in the standard
// Go library. // Go library.

View 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. - "main" denotes the top-level package in a stand-alone executable.
- "all" expands to all packages found in all the GOPATH - "all" expands to all packages in the main module (or workspace modules) and
trees. For example, 'go list all' lists all the packages on the local their dependencies, including dependencies needed by tests of any of those. In
system. When using modules, "all" expands to all packages in GOPATH mode, "all" expands to all packages found in all the GOPATH trees.
the main module and their dependencies, including dependencies
needed by tests of any of those.
- "std" is like all but expands to just the packages in the standard - "std" is like all but expands to just the packages in the standard
Go library. Go library.