Skip to content

Cargo should tell subcommands the path to itself #3778

Closed
@vojtechkral

Description

@vojtechkral

Many subcommands listed in the wiki need to run other existing cargo commands one way or another. Most of them seem to just call cargo (that is, the one in PATH) and hope it's the right one.

Cargo should pass the path to itself to subcommands so that they can be sure they're running the right cargo. IMHO the best way would be an environment variable, something like CARGO_BIN.

(In case you feel this is ok, I'm willing to write the patch.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions