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: runtime/debug: Expose buildid of running process #69372

Closed
Jille opened this issue Sep 10, 2024 · 2 comments
Closed

proposal: runtime/debug: Expose buildid of running process #69372

Jille opened this issue Sep 10, 2024 · 2 comments
Labels
Milestone

Comments

@Jille
Copy link

Jille commented Sep 10, 2024

Proposal Details

I'd like to use the buildid of the current process to check whether data in a cache was written by the same binary version.

I propose to extend runtime/debug.BuildInfo with a field BuildID, to be filled by debug.ReadBuildInfo(). This would give the value returned by go tool buildid $argv0.

@Jille Jille added the Proposal label Sep 10, 2024
@gopherbot gopherbot added this to the Proposal milestone Sep 10, 2024
@gabyhelp
Copy link

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@Jille
Copy link
Author

Jille commented Sep 10, 2024

Guess GitHub search doesn't see buildid and build-id as the same.

duplicate of #68186

@Jille Jille closed this as not planned Won't fix, can't repro, duplicate, stale Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants