-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support cargo install --all
#4101
Comments
Makes sense to me! I got scared that you might have meant |
That one sounds like... a nice Easter egg? ;) |
Maybe it could be called |
I suggested |
I second this! Would be really nice to have the |
I'm working on this, PR will be filed in a few minutes. |
For some workspaces, it makes sense to install from only one specific package. For example: cargo install --git https://github.com/habitat-sh/habitat --package hab --tag 0.58.0 In fact, I tried to run this exact command just a moment ago, which is what led me here. @matthiasbeyer Would it be feasible to include this functionality in the same PR or should I open a separate issue? |
I'm on a sabbatical and cannot contribute code right now, so I suppose opening a new PR would be the way to go. |
Hi from the Nushell team! We ship Nu with a set of plugins, and we're having to work around not having this feature using some (admittedly a little gross) hackery. We'd love to see this happen. Happy to help implement it, if it helps! |
It might be helpful to spell out the exact desired behavior. Something along these lines: Support the normal package selection flags ( Implementation may be tricky because |
Any update on this thread? It would be good to have something like this |
I don't think a special flag like |
This comment was marked as off-topic.
This comment was marked as off-topic.
For some reason, cargo install and cargo build do not do exactly the same thing. My commit at ed6ce14 broke cargo install without us noting it or CI catching it. This commit adds a test to cover this. It should be noted that Rust does not yet cargo install with workspace, so we need to point it to each of the individual binaries that we want to install, for reference see: - rust-lang/cargo#7599 - rust-lang/cargo#4101 - rust-lang/cargo#7124 We install each of the binaries into a temporary directory that will be cleaned up automatically by the runner when the job finishes. Signed-off-by: Arnaud de Grandmaison <[email protected]>
For some reason, cargo install and cargo build do not do exactly the same thing. My commit at ed6ce14 broke cargo install without us noting it or CI catching it. This commit adds a test to cover this. It should be noted that cargo install does not yet (or still does not !) play nice with workspace, so we need to point it to each of the individual binaries that we want to install, for reference see: - rust-lang/cargo#7599 - rust-lang/cargo#4101 - rust-lang/cargo#7124 We install each of the binaries into a temporary directory provided by the runner and that will be cleaned up automatically when the job finishes. Signed-off-by: Arnaud de Grandmaison <[email protected]>
For some reason, cargo install and cargo build do not do exactly the same thing. My commit at Arnaud-de-Grandmaison-ARM@ed6ce14 broke cargo install without us noting it or CI catching it. This commit adds a test to cover this. It should be noted that cargo install does not yet (or still does not !) play nice with workspace, so we need to point it to each of the individual binaries that we want to install, for reference see: - rust-lang/cargo#7599 - rust-lang/cargo#4101 - rust-lang/cargo#7124 We install each of the binaries into a temporary directory provided by the runner and that will be cleaned up automatically when the job finishes. Signed-off-by: Arnaud de Grandmaison <[email protected]>
There seems to be no easy way currently to install all binaries from all crates in a given workspace. Instead,
cargo install
has to be called for all of them separately. It would be nice ifcargo install
supported a--all
flag to recurse into all crates of the workspace.Does this seem to make sense?
The text was updated successfully, but these errors were encountered: