]> Cypherpunks repositories - gostls13.git/commit
cmd/go: suggest running 'go help gopath' with problematic GOPATH
authorEgon Elbre <egonelbre@gmail.com>
Fri, 24 Apr 2015 06:59:31 +0000 (09:59 +0300)
committerRuss Cox <rsc@golang.org>
Thu, 18 Jun 2015 17:34:26 +0000 (17:34 +0000)
commit4f4da07ea0f43a915489c1dec0dc47019d9ee73f
treeb2bafbbaeab4dcc373029b640aabd7d987bf67db
parent01187f756e26c80af83ec13b3ebdfe3bcd2d0a46
cmd/go: suggest running 'go help gopath' with problematic GOPATH

Suggest running 'go help gopath' when the running 'go install .'
and the folder is outside of GOPATH.

Added link to 'https://golang.org/doc/code.html' in gopath help
for more information.

Example output:

% go install .
go install: no install location for directory f:\x\badmessage outside GOPATH
        please run 'go help gopath' for more information

% go help gopath
... SNIP ...
See https://golang.org/doc/code.html for an example.

Fixes #8457

Change-Id: I0ef6ee3c65bb12af2168eafeb757258aa3835664
Reviewed-on: https://go-review.googlesource.com/9258
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/build.go
src/cmd/go/help.go