-
Notifications
You must be signed in to change notification settings - Fork 44
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
multiple matching crates when deps are duplicated (local deps) #37
Comments
In fact the remote VCS based dependencies will be broken too. Here is a braindump on how to tackle these problems in the (likely) case I'll not be able to work on this issue in the upcoming weeks. Current implementation of dependency deduplication
for example
searching for following JSON construct containing the crate version under [local][precalculated] or [local][0][precalculated]: "local": {
"Precalculated": "0.10.1"
},
for example
The problem with local PATH and VCS based dependenciesBoth local and VCS dependencies will not work in current setup due to different
"local": {
"MtimeBased": [
[
1499933308,
284260699
],
"/some/path/target/debug/.fingerprint/skeptic-f99537cab0ea0278/dep-lib-skeptic-f99537cab0ea0278"
]
},
"local": {
"Precalculated": "4f04f1e58bf2839735f692a511f502ad48ec0f48"
}, In both cases we are still able to obtain rlib paths but we loose the correlation with Cargo.lock. At the moment my best idea would be to just fallback to selecting the rlib with highest mtime in case we are handling PATH or VCS based dependency and cross our fingers 😞 @brson Honestly, this is an awful hackjob and we may need to wait for cargo buildplans rust-lang/cargo#3815 to solve this issue reasonably. |
https://github.com/brson/rust-skeptic/pull/36 fixed this problem for crates.io dependencies but it still shows up for local dependencies because the fingerprint looks different.
The text was updated successfully, but these errors were encountered: