aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug
diff options
context:
space:
mode:
authorEhden Sinai <ehdens@gmail.com>2024-02-01 13:38:56 -0500
committerGopher Robot <gobot@golang.org>2024-02-01 22:47:28 +0000
commitac08c05d4daa11957fcada6db33f2150936bac27 (patch)
treeb0443335047bdfcbb574f265d13c9bc7eb37d400 /src/runtime/debug
parentc9d88ea2aa628cae224335c49f256e13adfce337 (diff)
downloadgo-ac08c05d4daa11957fcada6db33f2150936bac27.tar.xz
cmd/go: fix build config before creating actions for 'go list -cover'
When -covermode is set to atomic, instrumented packages need to import sync/atomic. If this is not already imported by a package being instrumented, the build needs to ensure that sync/atomic is compiled whenever 'go list' is run in a way that triggers package builds. The build config was already being made to ensure the import, but only after the action graph had been created, so there was no guarantee that sync/atomic would be built when needed. Fixes #65264. Change-Id: Ib3f1e102ce2ef554ea08330d9db69a8c98790ac5 Reviewed-on: https://go-review.googlesource.com/c/go/+/560236 Run-TryBot: Bryan Mills <bcmills@google.com> Auto-Submit: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Michael Matloob <matloob@golang.org>
Diffstat (limited to 'src/runtime/debug')
0 files changed, 0 insertions, 0 deletions