-
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
cargo fix
doesn’t fix path dependencies
#13022
Comments
Alternatively
Fixes both |
This should probably be filed against Cargo, given that's where |
Yes this is largely a Cargo issue rather than a rustfix one, and agreed that warnings should only be presented for crates which are actually considered candidates for fixing! |
This should be fixed in #6247 |
Silencing migration warnings for crates that are not being fixed is a nice improvement, but it doesn’t fix the issue that path dependencies are not fixed. |
You can migrate multiple crates manually with |
Yes they aren’t, and I think that’s a bug. |
Don't turn on edition lints for unfixed crates Currently Cargo runs the risk of turning on the edition lints for crates which `cargo fix` isn't actually fixing, which means you'll get a huge deluge of lints that would otherwise be automatically fixable! Fix this situation by only enabling lints in the same cases that we're actually applying fixes. Closes rust-lang-nursery/rustfix#150
Currently Cargo runs the risk of turning on the edition lints for crates which `cargo fix` isn't actually fixing, which means you'll get a huge deluge of lints that would otherwise be automatically fixable! Fix this situation by only enabling lints in the same cases that we're actually applying fixes. Closes rust-lang-nursery/rustfix#150
@steveklabnik did you mean to close that from your fork of cargo? |
uh, no. Sorry about that. All I did was the usual "update my fork of cargo and push master". It shouldn't be closing random things... |
I'm uncertain, but I think I'm going to propose to close this. I think there are some complications with implicitly affecting |
Agree on this approach. Path dependencies can also be shared across workspaces and not belong to any of them. Fixing them sounds risky and not always intented. Closing as proposed. |
In an empty directory, run:
This creates three crates with identical code, with one depending on the other two through
path
Cargo dependencies.cargo fix
is able to silently fix the "root" crate, for the other two it only prints warnings.Output with
nightly-2018-11-01
which containscargo 1.31.0-nightly (2d0863f65 2018-10-20)
which depends onrustfix = "0.4.2"
:The text was updated successfully, but these errors were encountered: