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

Get release information from the runtime (Go 1.18) #401

Closed
rhcarvalho opened this issue Dec 22, 2021 · 2 comments
Closed

Get release information from the runtime (Go 1.18) #401

rhcarvalho opened this issue Dec 22, 2021 · 2 comments

Comments

@rhcarvalho
Copy link
Contributor

Starting with Go 1.18, the go command embeds information about the build which can be retrieved using runtime/debug.ReadBuildInfo for the current binary.

We can use that information to provide a possibly better automatic release detection functionality and to augment the metadata sent along with events.

References:

@earthboundkid
Copy link

See https://github.com/carlmjohnson/versioninfo for a sample project that parses build info on Go 1.18 without breaking in old versions of Go.

@cleptric
Copy link
Member

cleptric commented Dec 6, 2024

Implemented in #704.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants