-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runtime/debug.BuildInfo.Path
: redundant with runtime/debug.BuildInfo.Main.Path
#68177
Comments
Thanks, but we can't make that change now. It would break the Go 1 compatibility guarantee (https://go.dev/s/go1compat). |
|
@seankhliao then, would it be able to clarify it in the comments documentation ? Lines 46 to 48 in 90bcc55
This is misleading |
What is misleading about it? How would you write it? Thanks. |
As If i'm not mistaken, of course |
there is no "current" package, |
Do you mean the difference is between package and modules ? |
Go version
go version go1.22.3 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Checked:
runtime/debug.BuildInfo.Path == runtime/debug.BuildInfo.Main.Path
What did you see happen?
Confirmed:
runtime/debug.BuildInfo.Path == runtime/debug.BuildInfo.Main.Path
What did you expect to see?
Remove
runtime/debug.BuildInfo.Path
as redundant withruntime/debug.BuildInfo.Main.Path
References
go/src/runtime/debug/mod.go
Lines 46 to 51 in 90bcc55
go/src/runtime/debug/mod.go
Line 63 in 90bcc55
The text was updated successfully, but these errors were encountered: