cmd/go: no way to check staleness of targets built with coverage #57785
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?
No.
What operating system and processor architecture are you using (
go env
)?Linux/amd64
What did you do?
When I install Go commands (such as cmd/link, cmd/compile) as part of coverage testing scripts (intended to collect coverage for Go itself), I find that I can't use "go list" in the normal way to test for staleness. Example:
The problem here is that the "go list" command accepts most build flags (e.g. "-x", "-tags", etc) but does not accept "-cover" and related flags.
This is something of a boutique use case, but I think it is still worth fixing.
The text was updated successfully, but these errors were encountered: