From: Russ Cox Date: Fri, 26 Sep 2014 19:15:48 +0000 (-0400) Subject: cmd/go: fix -a X-Git-Tag: go1.4beta1~269 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1bf18b42f8475db2af1618d798285ed84a8dd521;p=gostls13.git 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 --- diff --git a/src/cmd/go/pkg.go b/src/cmd/go/pkg.go index eafaa8ee67..7f7a3b04fd 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 {