Skip to content

Encode the git commit hash in the revision section #378

@yoshuawuyts

Description

@yoshuawuyts

We should find a way to extract the commit hash from version control to populate the wasm_metadata::Revision custom section. This would address the following todo, introduced in #372 (review):

cargo-component/src/lib.rs

Lines 1058 to 1059 in bed7cf9

// TODO: get the git commit hash
revision: None,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions