]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make TestNewReleaseRebuildsStalePackagesInGOPATH pass again
authorIan Lance Taylor <iant@golang.org>
Fri, 13 Jul 2018 16:57:17 +0000 (09:57 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 16 Jul 2018 16:49:02 +0000 (16:49 +0000)
commitb323709a5cbac882bf945b0f9c08aee351e1ce4b
treed0045df026828032f831d57a50f526b93e32e042
parent3fcfb1f5737388a00f47d5de1c5266e1136abf05
cmd/go: make TestNewReleaseRebuildsStalePackagesInGOPATH pass again

The test TestNewReleaseRebuildsStalePackagesInGOPATH is not run in
short mode, so people tend to not notice when it fails. It was failing
due to the build cache. Make it pass again by 1) changing it to modify
the package in a way visible to the compiler, so that the change is
not hidden by caching; 2) accepting "not installed but available in
build cache" as always being a valid reason for a stale package, as go
list does not try to figure out an underlying reason for why a package
is stale when it finds it in the build cache but not installed.

Updates #24436

Change-Id: Iaeaa298f153451ec913a653dd4e6da79a33055bb
Reviewed-on: https://go-review.googlesource.com/123815
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/go_test.go