Skip to content

Commit

Permalink
cmd/go: fix -a
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rsc committed Sep 26, 2014
1 parent 8c3005c commit 1bf18b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/go/pkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1bf18b4

Please sign in to comment.