-
Notifications
You must be signed in to change notification settings - Fork 619
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
Allow underscore-prefixed renamed dependency in manifest #3724
Allow underscore-prefixed renamed dependency in manifest #3724
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
👋 @hi-rustin the issue here is slightly more complicated. crate name generally are not allowed to start with an underscore, so adjusting #1487 implemented support for "renamed dependencies", but it looks like we did not test for the " |
@Turbo87 Thanks for the review! Added. |
The test case will fail when there is no such underscore change.
|
b8814e4
to
b5f0294
Compare
I did some local debugging and integration testing to make sure the logic was being tested. |
6fcb4b5
to
6fb1ed4
Compare
6fb1ed4
to
2d01423
Compare
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.
looks good to me now, but I would like to get a second pair of eyes on this before we merge it.
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.
The code changes themselves look great, but I'd prefer for the internal API to be harder to misuse and misunderstand:
- The boolean
Crate::valid_name("foo", true)
orCrate::valid_name("bar" false)
is a bit confusing if one doesn't know about this PR. I'd prefer to keepCrate::valid_name
the same as before and adding aCrate::valid_dependency_name
. EncodableExplicitName
is also a bit confusing, it'd be better to call itEncodableDependencyName
.
2d01423
to
cb76a05
Compare
@pietroalbini Addressed! Thanks for your review. |
ee151b3
to
7dfc717
Compare
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.
Thanks!
@bors r+ |
📌 Commit 7dfc717 has been approved by |
☀️ Test successful - checks-actions |
Thank you, @hi-rustin, and everyone who helped get this merged! |
close #3532