docs.rs documentation-build fails #14

Closed
opened 2022-04-23 20:32:36 +00:00 by Ghost · 2 comments

Hi!

The documentation on libcwitch over on docs.rs is not available (the last successful doc-build is 0.1.0).

Troubleshooting for the failed build is available here.

From my limited understanding of the whole rust-toolchain (and docs.rs) it seems to me as if this might be the problem (libcwtch is downloading additional files during the build process). Scratch that, libcwtch is using the proposed environment variable.

Cheers!

Hi! The documentation on `libcwitch` over on [docs.rs](https://docs.rs/crate/libcwtch/latest) is not available (the last successful doc-build is `0.1.0`). Troubleshooting for the failed build is available [here](https://docs.rs/about/builds#diagnosing-failed-builds). ~~From my limited understanding of the whole rust-toolchain (and docs.rs) it seems to me as if [this](https://docs.rs/about/builds#read-only-directories) might be the problem (`libcwtch` is downloading additional files during the build process).~~ Scratch that, `libcwtch` is using the proposed environment variable. Cheers!
dan was assigned by sarah 2022-04-23 23:29:38 +00:00
Owner

Thanks for the report!

This is definitely because the crate downloads the lib at build time. The hash that it is failing on:

[207, 131, 225, 53, 126, 239, 184, 189, 241, 84, 40, 80, 214, 109, 128, 7, 214, 32, 228, 5, 11, 87, 21, 220, 131, 244, 169, 33, 211, 108, 233, 206, 71, 208, 209, 60, 93, 133, 242, 176, 255, 131, 24, 210, 135, 126, 236, 47, 99, 185, 49, 189, 71, 65, 122, 129, 165, 56, 50, 122, 249, 39, 218, 62] is the sha512sum of an empty file.

Since docs.rs will not enable network access for any crate we should likely package the library with this.

Thanks for the report! This is definitely because the crate downloads the lib at build time. The hash that it is failing on: `[207, 131, 225, 53, 126, 239, 184, 189, 241, 84, 40, 80, 214, 109, 128, 7, 214, 32, 228, 5, 11, 87, 21, 220, 131, 244, 169, 33, 211, 108, 233, 206, 71, 208, 209, 60, 93, 133, 242, 176, 255, 131, 24, 210, 135, 126, 236, 47, 99, 185, 49, 189, 71, 65, 122, 129, 165, 56, 50, 122, 249, 39, 218, 62]` is the sha512sum of an empty file. Since docs.rs will not enable network access for any crate we should likely package the library with this.
Owner
0.3.1 fixes this: https://docs.rs/libcwtch/0.3.1/libcwtch/
sarah closed this issue 2022-04-26 20:17:01 +00:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/libcwtch-rs#14
No description provided.