-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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 does not honour replace directives #37392
Comments
This is closely related to #33975, in that CC @matloob |
This turned out to be easy enough to just go ahead and fix. |
Change https://golang.org/cl/220645 mentions this issue: |
Change https://golang.org/cl/220717 mentions this issue: |
Change https://golang.org/cl/220898 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
gives:
and:
gives:
Then:
gives:
But:
gives:
i.e. the newly built binary does not include any information about the fact that
github.com/myitcvscratch/main1
has been replaced, nor is any information aboutgithub.com/myitcvscratch/main2
included in theruntime/debug.BuildInfo
What did you expect to see?
Some reflection of the fact that
github.com/myitcvscratch/main1
has been replaced withgithub.com/myitcvscratch/main2
in theruntime/debug.BuildInfo
What did you see instead?
As above
cc @bcmills @jayconrod @hyangah
The text was updated successfully, but these errors were encountered: