You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is caused by a dependency on different versions of the same crate, depending on target. See rust issue 49002. I made a small project to reproduce the problem on github.
I need to work out 2 things
How to fix it
How to write a regression test
I don't know how to write a test without using crates.io, because trying to depend on 2 different versions using a local path is rejected:
error: failed to parse manifest at `/home/rdodd/devel/non-work/rust_49002/Cargo.toml`
Caused by:
Dependency 'dep' has different source paths depending on the build target. Each dependency must have a single canonical source path irrespective of build target.
Or maybe the manifest should fail to compile also for differing versions on crates.io?
The text was updated successfully, but these errors were encountered:
Thanks for the report! You can add crates to a registry in Cargo's test suite where it doesn't actually hit crates.io (search for usage of Package), and that may help in writing a test? Otherwise seems good to fix!
This is caused by a dependency on different versions of the same crate, depending on target. See rust issue 49002. I made a small project to reproduce the problem on github.
I need to work out 2 things
I don't know how to write a test without using crates.io, because trying to depend on 2 different versions using a local path is rejected:
Or maybe the manifest should fail to compile also for differing versions on crates.io?
The text was updated successfully, but these errors were encountered: