Skip to content

Export the vcs information as environment variable #11456

Open
@lu-zero

Description

Problem

Cargo is aware of the vcs information of the tree it is building, would be great to have it exported as environment variable.

Proposed Solution

Populate CARGO_VCS_VERSION, CARGO_VCS_VERSION_LONG with a compact and a long representation of the current tree, e.g. what git describe --tags and the full commit hash.

Notes

No response

Metadata

Assignees

No one assigned

    Labels

    A-environment-variablesArea: environment variablesA-gitArea: anything dealing with gitA-vcsArea: general VCS issuesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions