cmd/go: list with -export flag does not show the the correct BuildID when the -cover flag is present #60755
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
go tool buildid
should show the same buildID asgo list -export -f {{.BuildID}}
when the-cover
flag is present (ignoring binary action/content IDs).What did you see instead?
go tool buildid
shows a different action and content ID thango list -export -f {{.BuildID}}
when the-cover
flag is provided.The basic issue is that
go list
does not seem to work for describing the output of a build with-cover
(at least not the way it works without the-cover
flag).On further inspection, the
cover
tool doesn't seem to run forgo list
at all, so coverage instrumentation isn't happening, hence the lack of change in contentID.The text was updated successfully, but these errors were encountered: