]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix reuse of cached objects during cover
authorRuss Cox <rsc@golang.org>
Fri, 1 Dec 2017 18:19:39 +0000 (13:19 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 1 Dec 2017 21:06:14 +0000 (21:06 +0000)
commit232b2e3352b0e3913421dc43cb29003eac1c5130
treec713849b5f4fb9ff94746ce8d4b641ba55e26634
parent76dc4b1952b93a4e804ecb9a6126620ef9399d36
cmd/go: fix reuse of cached objects during cover

The cover variable indices could vary from build to build,
but they were not included in the build ID hash, so that
reusing the previously built package was not safe.
Make the indices no longer vary from build to build,
so that caching is safe.

Fixes #22652.

Change-Id: Ie26d73c648aadd285f97e0bf39619cabc3da54f2
Reviewed-on: https://go-review.googlesource.com/81515
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/test/test.go
src/cmd/go/internal/work/buildid.go