debug/buildinfo: fall back code for when there's no .go.buildinfo is wrong #73060
Labels
BugReport
Issues describing a possible bug in the Go implementation.
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
go version go1.24.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Trying to understand go version detection and go version fails to work on go 1.11 and go 1.12 version binaries while the original goversion tool (rsc.io/goversion) does. I chased it to this line:
go/src/debug/buildinfo/buildinfo.go
Line 462 in b138f8e
Which should probably be:
If I understand things correctly. Not sure if it should be fixed or if the fallback code should just be removed.
What did you see happen?
What did you expect to see?
rsc.io/goversion tool:
The text was updated successfully, but these errors were encountered: