-
Notifications
You must be signed in to change notification settings - Fork 1.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 metadata lints #967
Comments
Sounds like another project, but not sure. We already lint this in Servo's tidy script, btw. |
This is covered by Output for image 0.8:
still... it would probably be convenient to run such an analysis really early, like during plugin initialization, because every extra command one has to run and every extra setup that needs to be done will probably not be run/done. It needs to run very early, because the errors that occur due to such a mistake will be incomprehensible at best. |
I'm thinking if after merging #5636 this could be closed? I'm not sure if it covers point 3, what should be needed in case it does not? |
I now see what point 3 means, direct dependencies should re-export the transitive dependency with multiple versions so that the top level crate is able to see both versions. In that case the issue should remain open. |
Should we add lints that check the cargo metadata for issues like having the same library, but different versions of it, in the dependency tree?
Or should that be in another project?
There are multiple granularities of such a lint.
related:
rust-lang/cargo#2363
rust-lang/cargo#2064
The text was updated successfully, but these errors were encountered: