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

Cargo occasionally says 'error: failed to verify checksum' #1099

Closed
jyn514 opened this issue Oct 15, 2020 · 4 comments
Closed

Cargo occasionally says 'error: failed to verify checksum' #1099

jyn514 opened this issue Oct 15, 2020 · 4 comments
Labels
A-builds Area: Building the documentation for a crate C-bug Category: This is a bug

Comments

@jyn514
Copy link
Member

jyn514 commented Oct 15, 2020

Oct 09 17:00:01 docsrs cratesfyi[23690]: 2020/10/09 17:00:01 [INFO] rustwide::cmd: running `Command { std: "/home/cratesfyi/workspace/cargo-home/bin/cargo" "+nightly" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
Oct 09 17:00:01 docsrs cratesfyi[23690]: 2020/10/09 17:00:01 [INFO] rustwide::cmd: [stderr]  Downloading crates ...
Oct 09 17:00:01 docsrs cratesfyi[23690]: 2020/10/09 17:00:01 [INFO] rustwide::cmd: [stderr]   Downloaded syn v1.0.43
Oct 09 17:00:02 docsrs cratesfyi[23690]: 2020/10/09 17:00:02 [INFO] rustwide::cmd: [stderr]   Downloaded syn-test-suite v0.0.0
Oct 09 17:00:02 docsrs cratesfyi[23690]: 2020/10/09 17:00:02 [INFO] rustwide::cmd: [stderr] error: failed to verify the checksum of `syn-test-suite v0.0.0`
Oct 09 17:00:02 docsrs cratesfyi[23690]: 2020/10/09 17:00:02 [ERROR] docs_rs::build_queue: Failed to build package syn-1.0.43 from queue: command failed: exit code: 101
Oct 09 17:00:02 docsrs cratesfyi[23690]: Backtrace:    0: failure::backtrace::internal::InternalBacktrace::new
Oct 09 17:00:02 docsrs cratesfyi[23690]:    1: <failure::backtrace::Backtrace as core::default::Default>::default
Oct 09 17:00:02 docsrs cratesfyi[23690]:    2: rustwide::prepare::Prepare::fetch_deps
Oct 09 17:00:02 docsrs cratesfyi[23690]:    3: rustwide::prepare::Prepare::prepare
Oct 09 17:00:02 docsrs cratesfyi[23690]:    4: rustwide::build::BuildBuilder::run
Oct 09 17:00:02 docsrs cratesfyi[23690]:    5: docs_rs::docbuilder::rustwide_builder::RustwideBuilder::build_package
Oct 09 17:00:02 docsrs cratesfyi[23690]:    6: docs_rs::build_queue::BuildQueue::process_next_crate
Oct 09 17:00:02 docsrs cratesfyi[23690]:    7: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once
Oct 09 17:00:02 docsrs cratesfyi[23690]:    8: docs_rs::utils::queue_builder::queue_builder
Oct 09 17:00:02 docsrs cratesfyi[23690]:    9: std::sys_common::backtrace::__rust_begin_short_backtrace
Oct 09 17:00:02 docsrs cratesfyi[23690]:   10: core::ops::function::FnOnce::call_once{{vtable.shim}}
Oct 09 17:00:02 docsrs cratesfyi[23690]:   11: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
Oct 09 17:00:02 docsrs cratesfyi[23690]:              at /rustc/d3fb005a39e62501b8b0b356166e515ae24e2e54/src/liballoc/boxed.rs:1076
Oct 09 17:00:02 docsrs cratesfyi[23690]:       <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once
Oct 09 17:00:02 docsrs cratesfyi[23690]:              at /rustc/d3fb005a39e62501b8b0b356166e515ae24e2e54/src/liballoc/boxed.rs:1076
Oct 09 17:00:02 docsrs cratesfyi[23690]:       std::sys::unix::thread::Thread::new::thread_start
Oct 09 17:00:02 docsrs cratesfyi[23690]:              at /rustc/d3fb005a39e62501b8b0b356166e515ae24e2e54/src/libstd/sys/unix/thread.rs:87
Oct 09 17:00:02 docsrs cratesfyi[23690]:   12: start_thread
Oct 09 17:00:02 docsrs cratesfyi[23690]:   13: __clone
lines 452115-452151
@jyn514 jyn514 added C-bug Category: This is a bug A-builds Area: Building the documentation for a crate labels Oct 15, 2020
@jyn514
Copy link
Member Author

jyn514 commented Oct 15, 2020

Strangely the build for syn 1.0.43 seems to have worked fine. Maybe this is for a cross-compiled target? https://docs.rs/syn/1.0.43/syn/index.html

@Nemo157
Copy link
Member

Nemo157 commented Oct 15, 2020

syn-test-suite v0.0.0 is messed up, I noticed this crate a lot when working on https://gist.github.com/Nemo157/d9efafac719ead283282d2346f018987.

Interesting thing to notice in syn 1.0.43 is that its Cargo.lock contains syn-test-suite 0.0.0+test, but there's also a published syn-test-suite 0.0.0; so Cargo is probably hitting some bug to do with invalid version duplication with different build metadata.

@Nemo157
Copy link
Member

Nemo157 commented Oct 15, 2020

Yeah, testing it this error is what is emitted if you have 0.0.0 specified as the version and the checksum from 0.0.0+test. Caused by rust-lang/cargo#7180

@jyn514
Copy link
Member Author

jyn514 commented Oct 15, 2020

Hmm, interesting. Since it's not a docs.rs bug and the cargo bug already has an issue I'm going to close this.

@jyn514 jyn514 closed this as completed Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-builds Area: Building the documentation for a crate C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants