Skip to content
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

"error: failed to verify the checksum of [crate]" #19

Open
lucypero opened this issue Feb 28, 2023 · 3 comments
Open

"error: failed to verify the checksum of [crate]" #19

lucypero opened this issue Feb 28, 2023 · 3 comments

Comments

@lucypero
Copy link

When I try to build a crate that uses a crate from my registry, I get this strange error:

error: failed to verify the checksum of `lucylib v0.1.0 (registry `lucy-registry`)`

What could it be? The checksum in the index is correct.

@Eh2406
Copy link

Eh2406 commented Feb 28, 2023

Is there a checksum in your lockfile?

@lucypero
Copy link
Author

lucypero commented Mar 1, 2023

on the crate that is using the crate? yes, and it is correct

@ehuss
Copy link
Owner

ehuss commented Oct 23, 2023

Unfortunately I don't have any ideas on what could be the problem.

The error is generated when the SHA256 checksum of the file downloaded over the network does not match what is listed in the index. You can check that the hash of the .crate file is the same as what is in the index. You may also need to delete cargo's cache (in ~/.cargo/registry) if you have been modifying the index (cargo generally assumes existing entries are immutable).

If you have a reproduction, I can perhaps help, otherwise this issue may need to be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants