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

proposal: expose build meta info to runtime #37799

Closed
utrack opened this issue Mar 11, 2020 · 1 comment
Closed

proposal: expose build meta info to runtime #37799

utrack opened this issue Mar 11, 2020 · 1 comment

Comments

@utrack
Copy link

utrack commented Mar 11, 2020

Piggybacking off #35667

Build info (runtime/debug.modinfo,runtime.buildVersion, go.metadata, etc) can be useful if exposed to runtime.
For example, access to a list of module versions and their SHA-1s would allow people to expose it via some HTTP handler, so monitoring would pick it up and signal if there's a service running with some dependency that has critical bugs in it.

@gopherbot gopherbot added this to the Proposal milestone Mar 11, 2020
@utrack
Copy link
Author

utrack commented Mar 11, 2020

Welp, somehow I've overlooked debug.ReadBuildInfo. Go version can be pulled via runtime.Version, so only ldflags are missing - guess they'll be accessible when #35667 is out.

@utrack utrack closed this as completed Mar 11, 2020
@golang golang locked and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants