Skip to content
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

cmd/go: populate debug.Module.Sum even if build in devel mode #33533

Open
dsnet opened this issue Aug 7, 2019 · 1 comment

Comments

@dsnet
Copy link
Member

commented Aug 7, 2019

Related to #29814

When a binary is build from within a module's source tree, the output from runtime/debug.ReadBuildInfo currently reports the module as having version (devel).
This is understandable.

However, I don't think there is technical reason why the Sum at least can't be computed.

This has usefulness when building commandline tools from the source tree, and you want to at least emit some versioning information that distinguishes one build from another build at a different commit.

\cc @bcmills

@dsnet dsnet added the modules label Aug 7, 2019

@bcmills bcmills added the NeedsFix label Aug 7, 2019

@bcmills bcmills added this to the Go1.14 milestone Aug 7, 2019

@bcmills

This comment has been minimized.

Copy link
Member

commented Aug 7, 2019

This request seems eminently reasonable to me.

(CC @jayconrod in case he disagrees.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.