-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 install A B C
only updates A if A, B, C are outdated
#13911
Comments
cargo install A B C
only updates A
cargo install A B C
only updates Acargo install A B C
only updates A if A, B, C are outdated
@rustbot label +Command-install |
I don't find a text description in the cargo book that Path:
I'm leaning more towards the first one. |
Ran this snippet but unable to reproduce.
Have you configured |
@heisen-li. The feature is supported since #4216 (1.21). The cargo/tests/testsuite/install.rs Lines 217 to 221 in 2f17770
|
I don't think I have anything special set up, im using the default cargo home at ~/.cargo/ I think I ran the install command while cwd == /tmp/ but would be surprised if that makes a difference. |
I can still reproduce this. |
Can you show the contents of And maybe post the output of |
FWIW I get this too with But I also can't reproduce with the example above, so there's likely some moderating condition... |
Problem
PRECONDITION
have several outdated crates installed via
cargo install
STEPS TO REPRODUCE
cargo install cargo-bloat cargo-tarpaulin cargo-test-fuzz
EXPECTED BEHAVIOUR:
cargo installs/updates all three packages
ACTUAL BEHAVIOUR
cargo only (re)installs/upgrades the very first package.
The second and third packages were not touched.
However, cargo claimed that it "successfully installed" them as well 🤔
To find out which packages needed updating I ran
I then tried to upgrade some manually but only the first package was updated
Steps
No response
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: