]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix go list .Stale computation
authorRuss Cox <rsc@golang.org>
Wed, 18 Apr 2018 20:34:45 +0000 (16:34 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 Apr 2018 20:19:19 +0000 (20:19 +0000)
commit9e0e6981fc536c9e51ce24c425141a3d09b39e3a
tree98861fa573ea3ecc9e18397615c5ad51b3962d54
parent7500b29993f193e68a9785c3b729a45f4080042c
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 #24558.
Fixes #23818.

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>
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