Skip to content

Commit 73c3c44

Browse files
committed
_content/doc/modules: clarify that tool's name isn't always basename
The name that can be passed to go tool to invoke a module-defined tool isn't always the basename of the tool's import path. Change the wording to clarify that. This is the wording that we use in the go build documentation for where we place its output by default. It's a bit awkward to have the phrase here but I think it's okay Change-Id: Idfab92c7504e4a01382345441a4aef9c35e4ba56 Reviewed-on: https://go-review.googlesource.com/c/website/+/634697 LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Sam Thanawalla <[email protected]> Reviewed-by: Will Faught <[email protected]>
1 parent 9382220 commit 73c3c44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

_content/doc/modules/managing-dependencies.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,8 @@ $ go get -tool golang.org/x/tools/cmd/stringer
493493
494494
This will add a [`tool` directive](/ref/mod/#go-mod-file-tool) to your `go.mod` file, and ensure the
495495
necessary require directives are present. Once this directive is added you can
496-
run the tool by passing the last fragment of the package path to `go tool`:
496+
run the tool by passing the last [non-major-version](/ref/mod#major-version-suffixes)
497+
component of the tool's import path to `go tool`:
497498
498499
```
499500
$ go tool stringer

0 commit comments

Comments
 (0)