Skip to content

Fix build metadata handling in SemVer versions #6451

Closed
@sdroege

Description

@sdroege

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 reports

error: failed to sync
Caused by:
  failed to download packages
Caused by:
  failed to verify the checksum of `const_fn_assert v0.1.2+deprecated`

Expected 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

  1. cargo init
  2. cargo add const_fn_assert
  3. cargo check
  Downloaded const_fn_assert v0.1.2+deprecated
error: failed to verify the checksum of `const_fn_assert v0.1.2+deprecated`

Environment

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions