aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2022-10-21 11:25:53 -0400
committerMichael Matloob <matloob@golang.org>2022-10-21 20:57:57 +0000
commit5b606a9d2b7649532fe25794fa6b99bd24e7697c (patch)
treeab340ccb693574d7be29a4a21839c8dd665f71cd /src/cmd/compile
parentd5efd0dd63a8beb5cc57ae7d25f9c60d5dea5c65 (diff)
downloadgo-5b606a9d2b7649532fe25794fa6b99bd24e7697c.tar.xz
cmd/go: correct staleness for packages in modules
Packages in modules don't have a Target set for them, so the current logic for determining staleness always reports them as stale. Instead it should be reporting whether "go install" would do anything, and sholud be false after a go install. If a package does not have a Target, instead check to see whether we've cached its build artifact. Change-Id: Ie7bdb234944353f6c2727bd8bf939cc27ddf3f18 Reviewed-on: https://go-review.googlesource.com/c/go/+/444619 Run-TryBot: Michael Matloob <matloob@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'src/cmd/compile')
0 files changed, 0 insertions, 0 deletions