runtime/debug: ReadBuildInfo returns !ok #51915
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It only reproduces with the lastest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I am using the debug package in a unit testing environment:
What did you expect to see?
The test passes in version 1.17
What did you see instead?
The test does not pass in version 1.18
My investigation so far
https://github.com/golang/go/blob/master/src/runtime/debug/mod.go#L15
Apparently, the
modinfo()
method returns exactly 32 bytes in 1.18, and 0 in 1.17, leading to a different behaviour.It happens both on my machine and in my CI docker image which uses go latest.
The text was updated successfully, but these errors were encountered: