summaryrefslogtreecommitdiff
path: root/src/cmd/go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-26 15:15:48 -0400
committerRuss Cox <rsc@golang.org>2014-09-26 15:15:48 -0400
commit257ab9ad372cbc9d75170532032ea0d1e4447ff5 (patch)
treecd8ef48560b81ee29506ffafe3f639f399eb7d81 /src/cmd/go
parent7c071adcac2d9ac390ed7d2bd12d23a29c2c29aa (diff)
downloadgo-257ab9ad372cbc9d75170532032ea0d1e4447ff5.tar.gz
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://codereview.appspot.com/146340044
Diffstat (limited to 'src/cmd/go')
-rw-r--r--src/cmd/go/pkg.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/pkg.go b/src/cmd/go/pkg.go
index eafaa8ee6..7f7a3b04f 100644
--- a/src/cmd/go/pkg.go
+++ b/src/cmd/go/pkg.go
@@ -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 {