Skip to content

Commit f0b8d79

Browse files
ConradIrwinmatloob
authored andcommitted
cmd/go: add tool meta-pattern to go help packages
For #48429 Change-Id: I6932853c3156a68d099a749431d15d2c37785649 Reviewed-on: https://go-review.googlesource.com/c/go/+/632555 Reviewed-by: Sam Thanawalla <[email protected]> Auto-Submit: Sam Thanawalla <[email protected]> Reviewed-by: Michael Matloob <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 2440717 commit f0b8d79

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/cmd/go/alldocs.go

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ environment variable (For more details see: 'go help gopath').
4949
If no import paths are given, the action applies to the
5050
package in the current directory.
5151
52-
There are four reserved names for paths that should not be used
52+
There are five reserved names for paths that should not be used
5353
for packages to be built with the go tool:
5454
5555
- "main" denotes the top-level package in a stand-alone executable.
@@ -64,6 +64,8 @@ Go library.
6464
- "cmd" expands to the Go repository's commands and their
6565
internal libraries.
6666
67+
- "tool" expands to the tools defined in the current module's go.mod file.
68+
6769
Package names match against fully-qualified import paths or patterns that
6870
match against any number of import paths. For instance, "fmt" refers to the
6971
standard library's package fmt, but "http" alone for package http would not

0 commit comments

Comments
 (0)