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

Open
rhcarvalho opened this issue Dec 22, 2021 · 1 comment
Open

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

rhcarvalho opened this issue Dec 22, 2021 · 1 comment

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.

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

4 participants