Improve error message when wrong package found in a path dependency #15296
Labels
A-crate-dependencies
Area: [dependencies] of any kind
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
S-accepted
Status: Issue or feature is accepted, and has a team member available to help mentor or review
When specifying a path dependency, but the path has a different package there, the error message can be a little confusing.
For example:
and
crates/bar
contains abar
package.This will result in the error message:
There are a few issues with this message:
Cargo.toml
. Currently that error message looks like:This issue came up in #13360, where a user converted a
git
dependency to apath
dependency, and didn't know cargo wouldn't do a recursive search. The git path happened to have aCargo.toml
at the root.Meta
The text was updated successfully, but these errors were encountered: