]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix build config for 'go list -cover'
authorThan McIntosh <thanm@google.com>
Tue, 13 Jun 2023 20:13:01 +0000 (16:13 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 15 Jun 2023 23:07:39 +0000 (23:07 +0000)
commit3e7ec131667c31448365f47643cf9b58d08ffd26
tree853f9f02b36c77c16a664344c75ea80d4e3ad70c
parent30b17f4f97d37f654c5090001c5b44c331b00d0c
cmd/go: fix build config for 'go list -cover'

When 'go list -cover' is run in a way that triggers package builds
(for example, -export), ensure that the build step actually includes
coverage instrumentation as part of the config. Without this we will
wind up with incorrect build IDs.

Fixes #60755.

Change-Id: Ic84ab9e301d075bee5ff9d6828370a1708be0035
Reviewed-on: https://go-review.googlesource.com/c/go/+/502877
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
src/cmd/go/internal/list/list.go
src/cmd/go/testdata/script/cover_list.txt