-
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 confused about broken Cargo.toml
in $HOME
#6706
Comments
This is because There is a legitimate use case for having a ws-manifest in |
Maybe somehow make the errors from parsing/interpretting that one a soft error or warning? If it doesn't look like toml (or package manifest at all), then warn about its existence, but don't fail. Would that be possible? |
Stray manifests in parent paths will otherwise be discovered greedily. Fixes rust-lang#6706
My concern about a warning is that if the actual workspace had an error in it then that would be silently incorrect at worse and product a lot of unrelated errors at best. Workaround: add a rust-lang/rfcs#3279 will allow some control over finding an implied I have considered the idea of allowing |
See also #6646 which is a more specialized version of this problem. |
Problem
Sometimes, I just temporarily copy or move files to my $HOME (during a rebase or something). I did that with
Cargo.toml
today.If I try to run
cargo build
in any project, it then tries to load theCargo.toml
in the $HOME too ‒ which is likely unrelated to the current project and is likely broken (because $HOME/src does not exist, so it can't decide what to compile there). That is quite confusing behaviour.Notes
Output of
cargo version
:cargo 1.34.0-nightly (5c6aa46e6 2019-02-22)
(but happens with stable too, so I guess it's there for a while)The text was updated successfully, but these errors were encountered: