surrealdb/surrealdb

Bug: failed to verify the checksum of `surrealdb v1.0.0-beta.9+20230402`

Closed this issue ยท 4 comments

Odonno commented

Describe the bug

I have the following error very often when running inside GitHub Actions CI pipeline:

error: failed to verify the checksum of `surrealdb v1.0.0-beta.9+20230402` 

Example: https://github.com/Odonno/surrealdb-migrations/actions/runs/4777366293/jobs/8493040358?pr=4

Steps to reproduce

  1. Create a Rust project
  2. Install the surrealdb create to the latest version
  3. Sometimes it fails, sometimes it works

Expected behaviour

No fail.

SurrealDB version

v1.0.0-beta.9+20230402

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

This is a known Cargo issue. I'm not sure why it happens sometimes. I never run into it myself. This will automatically be fixed once beta.10 is released. A workaround for now is to use a git dependency.

yohcop commented

Hi,

I'm running in the same issue.

rust-lang/cargo#7180
This is possibly the reason. So publishing beta 10 might indeed fix it, but until this bug is fixed in cargo, it could be good to avoid publishing the same version with a different + tag for future versions.

Best,

To elaborate on @rushmorem 's workaround: You need to put this into your Cargo.toml under [dependencies]:

surrealdb = { git = "https://github.com/surrealdb/surrealdb.git", tag = "v1.0.0-beta.9" }

Or use a more recent tag.

I'm going to close this issue, as the problems arising in this issue will be fixed automatically with the next version release ๐Ÿš€.