cmd/cover: coverage instrumentation causes diff in gcflags=-m output #56475
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
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
)?linux/amd64
What did you do?
With this package:
Do a build with "go build -gcflags=-m tiny" and then with "go build -gcflags=-m -cover tiny"
What did you expect to see?
Same "-m" output
What did you see instead?
The addition of "-cover" perturbs some of the output.
Here's the baseline (no "-cover"):
and here is with "-cover":
Note that we've lost the column information.
FWIW, this same problem seems to exist for "go test -cover" in previous versions of Go, so this doesn't appear to be a regression.
The text was updated successfully, but these errors were encountered: