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

cargo list not showing my installed command #10403

Closed
FrankC01 opened this issue Feb 21, 2022 · 3 comments
Closed

cargo list not showing my installed command #10403

FrankC01 opened this issue Feb 21, 2022 · 3 comments
Labels

Comments

@FrankC01
Copy link

Problem

From my package folder I run
cargo install cargo-solana --path .

It installs, I test it elsewhere.... everything is hunky dory. However; when I run:

cargo --list I see

    search               Search packages in crates.io
    solana
    t                    alias: test

My command description is blank (as apposed to the surrounding commands

Steps

  1. git clone https://github.com/FrankC01/cargo-solana
  2. cd cargo-solana
  3. cargo install cargo-solana --path .
  4. cargo --list

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.58.0 (f01b232bc 2022-01-19)
release: 1.58.0
commit-hash: f01b232bc7f4d94f0c4603930a5a96277715eb8c
commit-date: 2022-01-19
host: x86_64-apple-darwin
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.77.0 (sys:0.4.51+curl-7.80.0 system ssl:(SecureTransport) LibreSSL/2.8.3)
os: Mac OS 12.2.1 [64-bit]
@FrankC01 FrankC01 added the C-bug Category: bug label Feb 21, 2022
@weihanglo
Copy link
Member

Thank for the report! Unluckily, cargo doesn't know about what and how to display the description of external commands. Even cargo clippy and cargo fmt are hardcoded. There was an attempt to fix this issue, and Alex explained the situation very clear,

"...we'll want to look for a solution that both works and satisfies the constraints of maintainability in Cargo."

It would be great if you have a viable solution to share! 😄

@FrankC01
Copy link
Author

OK, thanks for the update and references. I will take a look at the code specifically in the install/uninstall space and give you my thoughts if not a PR.

@weihanglo
Copy link
Member

Hi. There is a new feature request #10662, and it gets a reference implementation. I am going to close this one. If you are still interested in this feature, we can move further discussions there. Thanks for your report!

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

No branches or pull requests

2 participants