cmd/go: fix -a

The one line that you can't test easily was broken.
This manifested as a failure of a pre-existing test
in test.bash but I didn't notice it (there are a few other
long-standing failures that need to be fixed).

TBR=r
CC=golang-codereviews
https://golang.org/cl/146340044
This commit is contained in:
Russ Cox 2014-09-26 15:15:48 -04:00
parent 8c3005c492
commit 1bf18b42f8
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ func computeStale(pkgs ...*Package) {
// "go1.X[.Y]" for Go releases, and "devel +hash" at tip.
// Determine whether we are in a released copy by
// inspecting the version.
var isGoRelease = !strings.HasPrefix(runtime.Version(), "go1")
var isGoRelease = strings.HasPrefix(runtime.Version(), "go1")
// isStale reports whether package p needs to be rebuilt.
func isStale(p *Package, topRoot map[string]bool) bool {