Skip to content

Make cargo recognize commands from uninstalled plugins #11226

Closed as not planned
Closed as not planned
@estebank

Description

@estebank

Problem

When executing cargo foo, without having executed cargo install cargo-foo beforehand, the error message will be something along the lines of

error: no such subcommand: `foo`

        Did you mean `doc`?

Given that we can have the full list crates available to us, we can detect that a user is trying to use a not-yet-installed subcommand.

Proposed Solution

No response

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-custom-subcommandsArea: custom 3rd party subcommand pluginsA-diagnosticsArea: Error and warning messages generated by Cargo itself.C-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