Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

third party crate fails as custom cargo subcommand #7653

Closed
DevinR528 opened this issue Dec 3, 2019 · 2 comments
Closed

third party crate fails as custom cargo subcommand #7653

DevinR528 opened this issue Dec 3, 2019 · 2 comments
Labels
C-bug Category: bug

Comments

@DevinR528
Copy link

Problem
I maintain the cargo-sort-ck crate and got an issue about my command not working as a special subcommand when invoked as cargo sort-ck.

Steps

  1. cargo install cargo-sort-ck
  2. cargo sort-ck
  3. we both get this error Failure: No file found at: sort-ck/Cargo.toml

Possible Solution(s)
I'm probably doing something wrong.

Notes

Output of cargo version:
cargo 1.41.0-nightly (8280633 2019-11-11)

@ehuss
Copy link
Contributor

ehuss commented Dec 3, 2019

The first argument to a custom subcommand is the name of the subcommand itself. It looks like maybe you are interpreting it as a path? More information can be found at https://doc.rust-lang.org/cargo/reference/external-tools.html#custom-subcommands

@DevinR528
Copy link
Author

Thanks for taking the time to answer that I appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants