]> Cypherpunks repositories - gostls13.git/commit
cmd/go: include coverage build flags for "go list"
authorThan McIntosh <thanm@google.com>
Fri, 13 Jan 2023 21:46:49 +0000 (16:46 -0500)
committerThan McIntosh <thanm@google.com>
Tue, 17 Jan 2023 16:41:24 +0000 (16:41 +0000)
commit6cb8c43b842daffe628e8ee7a94ea3b1ba17299d
tree444591884ce2c94002216e5a2415c6ba6b55e496
parent02ed0e5e67530e6b041989d55048ce373dc60327
cmd/go: include coverage build flags for "go list"

This patch ensures that the go command's "list" subcommand accepts
coverage-related build options, which were incorrectly left out when
"go build -cover" was rolled out. This is needed in order to do things
like check the staleness of an installed cover-instrumented target.

Fixes #57785.

Change-Id: I140732ff1e6b83cd9c453701bb8199b333fc0f2e
Reviewed-on: https://go-review.googlesource.com/c/go/+/462116
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/list/list.go
src/cmd/go/testdata/script/cover_list.txt [new file with mode: 0644]