-
Notifications
You must be signed in to change notification settings - Fork 640
Yanking a crate should update its max_version #76
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
Comments
Suggestions for how this would handle yanking every version of a crate (e.g. publish a crate for the first time accidentally and then yank it, leaving no valid version at all)? |
That's a good question! I think that the returned value would just be |
Right now, this bug makes it look like the Rust url crate is completely gone, leaving a big hole in the ecosystem. Apparently, this is not the case, but I was badly confused by it the other day. |
… to work around rust-lang/crates.io#76 0.3.0 was published and then yanked: #135 (comment)
I just published url 0.4.0 to avoid confusion until this is fixed. It’s identical to 0.2.38, which is not compatible with 0.3.0 which was yanked. When the change from 0.3.0 lands again it’ll be 0.5.0. Version numbers are cheap. |
Surprising this issue has been around so long. Poor crates.io! |
Poor crates.io indeed! Let's get this issue on the mentored list :) Here's how I see the fix for this going:
And also tests, we should have tests for each of these cases. This is sounding like a medium. |
And don't forget to update all the existing cases where |
Has anyone started work on this? If not, I would like to volunteer. |
One situation that has not been covered is if the version being yanked is the last unyanked version. Should the max version be set to zero, the current version, or the max yanked version? |
@yodaldevoid Is this earlier comment not sufficient? |
@retep998 Ah, thank you for reminding me of that. Guess I should take a short break if I am missing a comment in a set of 11 comments. |
We decided to remove the max_version column instead, in #592. |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
If a crate has its max version yanked, it should update the max_version field to go back to the otherwise maximum version.
The text was updated successfully, but these errors were encountered: