On Mon, Aug 8, 2022 at 4:36 AM Orion Poplawski orion@nwra.com wrote:
I'm very new to rust and trying to build ClamAV 0.105.1 which adds usage of rust. I'm getting errors like the following when building (the package name seems to change):
error: checksum for `heck v0.3.3` changed between lock files
this could be indicative of a few possible errors:
* the lock file is corrupt * a replacement source in use (e.g., a mirror) returned a different
checksum * the source itself may be corrupt in one way or another
unable to verify that `heck v0.3.3` is the same as when the lockfile was generated
Looks like you're not running %cargo_prep in the correct directory. This macro explicitly removes Cargo.lock, exactly for this reason.
For context: We use a "replacement source" to replace https://crates.io with our own, local crate sources (in /usr/share/cargo/registry). RPM packages for Rust crates install their sources there.
Fabio