Skip to content

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

@Jille

Description

@Jille

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions