From 1bf18b42f8475db2af1618d798285ed84a8dd521 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 26 Sep 2014 15:15:48 -0400 Subject: [PATCH] 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 --- src/cmd/go/pkg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.48.1