Skip to content

Export the vcs information as environment variable #11456

Open

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions