cmd/go: test coverpkg panics when defining the same flag in multiple packages #27336
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
What version of Go are you using (
go version
)?go version go1.11 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
In a project consisting of multiple binaries I ran the tests using
go test -coverpkg=all ./...
. I later managed to reproduce this in a small dummy 'project' with the following file structureWhere both main.go files would look like the following
A simple
go test ./...
works just fine, ago test -coverpkg=all ./...
would end up panic'ing.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: