cmd/go: go ignores overlay map when using coverpkg flag #73802
Labels
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Uh oh!
There was an error while loading. Please reload this page.
Go version
go1.23.4 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I created the following files:
/tmp/mymodule/go.mod
:/tmp/mymodule/overlay.json
:/tmp/mymodule/submodule1/one.go
:package submodule1
/tmp/mymodule/submodule1/one_test.go
:/tmp/mymodule/test/context_builder.go
:/tmp/context_builder.go
:From
/tmp/mymodule
I then rango test -run TestSomething ./submodule1 -coverpkg=./... -overlay=$PWD/overlay.json
What did you see happen?
ok module3/submodule1 0.005s coverage: [no statements]
What did you expect to see?
If I instead run
go test -run TestSomething ./submodule1 -overlay=$PWD/overlay.json
(without thecoverpkg
flag), I see this panic.The text was updated successfully, but these errors were encountered: