]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix two bugs
authorRuss Cox <rsc@golang.org>
Tue, 27 Mar 2012 14:41:44 +0000 (10:41 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 27 Mar 2012 14:41:44 +0000 (10:41 -0400)
commit6b0929505ba7d4ede45d587239459d3f2eb8c3d4
tree2a9526811f9a4747ddef1d29c44c4005ed824f7c
parent14da5298cd2b2099909545976e7cb8e5c8fadae9
cmd/go: fix two bugs

Issue 3207 was caused by setting GOPATH=GOROOT.
This is a common mistake, so diagnose it at command start
and also correct the bug that it caused in get (downloading
to GOROOT/src/foo instead of GOROOT/src/pkg/foo).

Issue 3268 was caused by recognizing 'packages' that
had installed binaries but no source.  This behavior is not
documented and causes trouble, so remove it.  We can
revisit the concept of binary-only packages after Go 1.

Fixes #3207.
Fixes #3268.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5930044
src/cmd/go/get.go
src/cmd/go/main.go
src/cmd/go/pkg.go