]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.10] cmd/go: fix go list .Stale computation
authorRuss Cox <rsc@golang.org>
Wed, 18 Apr 2018 20:34:45 +0000 (16:34 -0400)
committerAndrew Bonventre <andybons@golang.org>
Fri, 27 Apr 2018 20:51:11 +0000 (20:51 +0000)
commit11d7a5a950a7189855bd98caf3083c9ea3d77beb
tree2deba8ab6e613e971a9e430691a4e24cfc5b0c97
parentabccc7a9b51372c67a0bc60159e8bf43ae77d102
[release-branch.go1.10] cmd/go: fix go list .Stale computation

If X depends on Y and X was installed but Y is only present in the cache
(as happens when you "go install X") then we should report X as up-to-date,
not as stale.

This applies whether X is a package or a main binary.

Fixes golang/go#25026
Fixes golang/go#25032

Change-Id: I26a0b375b1f7f7ac909cc0db68e92f4e04529208
Reviewed-on: https://go-review.googlesource.com/107957
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
(cherry picked from commit 9e0e6981fc536c9e51ce24c425141a3d09b39e3a)
Reviewed-on: https://go-review.googlesource.com/110076
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testshared/shared_test.go
src/cmd/go/go_test.go
src/cmd/go/internal/work/buildid.go
src/cmd/go/internal/work/exec.go