-
Notifications
You must be signed in to change notification settings - Fork 105
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
fix(subplanners): Match aliased dependencies by name and semver #346
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! Must have triggered since I'm not currently an employee 😅 |
Hey! Glad to see you're around and still making contributions. Do you think you can find a smaller crate that demonstrates this behavior? I was the author of these template files and before I started on #300 I was only dealing with small sets of metadata until I ran into |
I can definitely try to do this! The biggest issue is that the crate I'm using in the test is the only one that I know of that has this condition. Unless I upload a custom crate to the registry that recreates it. If I do that I can certainly reduce the size of the test. |
@UebelAndre Tests should be fixed now, let me know if you think there is more room for improvement |
This looks MUCH better, thank you so much!!! @GregBowyer started working on a way to fix various aliasing bugs in #282 so they might be interested in this as well. Other than that, @acmcarther will have to also review this before it's merged. But again, thank you! Very excited to finally understand what that test does and I think cargo-raze-alias-test is pretty awesome 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Arm1stice can you link the source code to |
re #346 (comment) |
Sorry, missed this. I have published at https://github.com/Arm1stice/cargo-raze-alias-test |
This PR adds an additional check to ensure that a dependency with an alias is matched by both name and it's version compared to the required semver in the dependency metadata. This allows a situation in which a crate has a dependency listed multiple times with different versions, some with aliases and others without.
Fixes #345