summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2016-10-21 12:19:52 -0400
committerRuss Cox <rsc@golang.org>2016-10-24 15:17:07 +0000
commit9575882461b79c833d206ace186db178e5aff9fa (patch)
treeb4e3386090ab6c41d968862043eaf6fa60c4b437
parenta1813fcb839e21e46208a5294df87097a44bd05a (diff)
downloadgo-git-9575882461b79c833d206ace186db178e5aff9fa.tar.gz
cmd/go: document that cmd/foo is only in Go repo, never GOPATH
It's always been like this, so document it. Fixes #14351. Change-Id: Ic6a7c44881bac0209fa6863a487fabec5ec0214e Reviewed-on: https://go-review.googlesource.com/31663 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Quentin Smith <quentin@golang.org>
-rw-r--r--src/cmd/go/help.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/go/help.go b/src/cmd/go/help.go
index 34fef7aca3..f90cfcc7e9 100644
--- a/src/cmd/go/help.go
+++ b/src/cmd/go/help.go
@@ -62,6 +62,9 @@ Go library.
- "cmd" expands to the Go repository's commands and their
internal libraries.
+Import paths beginning with "cmd/" only match source code in
+the Go repository.
+
An import path is a pattern if it includes one or more "..." wildcards,
each of which can match any string, including the empty string and
strings containing slashes. Such a pattern expands to all package