]> Cypherpunks repositories - gostls13.git/commit
cmd/go: permit installing into a subdirectory of $GOPATH/bin
authorIan Lance Taylor <iant@golang.org>
Thu, 30 Jul 2015 22:20:12 +0000 (15:20 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 31 Jul 2015 00:37:44 +0000 (00:37 +0000)
commit3548a1e7b8691be21d57bec32b875130543d0ea7
tree99f38c08e4902aea4677fe5af7ebb9978d000f62
parent4e0be154f7ac474f0768e0ca65612b5b111c2716
cmd/go: permit installing into a subdirectory of $GOPATH/bin

In https://golang.org/cl/12080 we forbade installing cross-compiled
binaries into a subdirectory of $GOBIN, in order to fix
https://golang.org/issue/9769.  However, that fix was too aggressive,
in that it also forbade installing into a subdirectory of $GOPATH/bin.

This patch permits installing cross-compiled binaries into a
subdirectory $GOPATH/bin while continuing to forbid installing into a
subdirectory of $GOBIN.

Fixes #11778.

Change-Id: Ibc9919554e8c275beff54ec8bf919cfaa03b11ba
Reviewed-on: https://go-review.googlesource.com/12938
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/go_test.go
src/cmd/go/pkg.go