-
Notifications
You must be signed in to change notification settings - Fork 640
Fix build metadata handling in SemVer versions #6451
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
crates.io/src/controllers/krate/publish.rs Line 190 in 127ac54
|
I think the problem here is how "build metadata" in the /cc @rust-lang/cargo |
Ah that would make sense and would at least be an honest mistake. Thanks for checking this so fast :) |
rust-lang/cargo#11412 for where the cargo team has discussed this |
Ah, that pointed me to this being a dupe of #1059 |
for cross-referencing: we discussed the situation on Zulip (see https://rust-lang.zulipchat.com/#narrow/stream/318791-t-crates-io/topic/const_fn_assert/near/356688583) we decided to remove since we already have #1059 for tracking the problem I'll go ahead and close this issue here since the |
#6518 has now been deployed. in other words: crates.io no longer allows "publishes with versions only differing in metadata" |
Current Behavior
Currently there's apparently not checking. Yesterday https://crates.io/crates/const_fn_assert was updated with a new version, and apparently
cargo
does not like the checksum of that crate and reportsExpected Behavior
This ideally should've been caught before accepting the new version.
cargo
itself checks this before uploading AFAIU, so I kind of assume that this was done intentionally and manually to "deprecate" this crate a bit harder.Steps To Reproduce
cargo init
cargo add const_fn_assert
cargo check
Environment
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: