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

latest nightly toolchain (a37c32e2d 2020-06-11) fails to build this crate: "file with name 'README.md' was not found" #19

Closed
oconnor663 opened this issue Jun 12, 2020 · 8 comments

Comments

@oconnor663
Copy link

https://github.com/oconnor663/blake2_simd/runs/764237325

In that run, I see this failure in one of my sub-crates:

/usr/share/rust/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/cargo test

    Updating crates.io index
 Downloading crates ...
error: failed to download `remove_dir_all v0.5.2`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.2/Cargo.toml`

Caused by:
  readme file with name 'README.md' was not found
Command failed :(

In my CI setup, it only fails on the nightly compiler, but it seems to reliably fail with nightly on every OS target. However locally, I can't seem to reproduce the failure at all.

Any chance you recognize this error message? I just have no idea what could really be causing it.

@XAMPPRocky
Copy link
Owner

Thank you for your issue! If you’re only getting this on nightly then likely there’s been regression on the rustc/cargo side. Would you mind reporting it upstream?

rbradford added a commit to rbradford/cloud-hypervisor that referenced this issue Jun 12, 2020
Rust nightly builds are currently failing due to a crate outside of
our control not meeting the latest cargo requirements.

See XAMPPRocky/remove_dir_all#19

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
rbradford added a commit to cloud-hypervisor/cloud-hypervisor that referenced this issue Jun 12, 2020
Rust nightly builds are currently failing due to a crate outside of
our control not meeting the latest cargo requirements.

See XAMPPRocky/remove_dir_all#19

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
@dignifiedquire
Copy link

It seems this was fixed on master in e2747c6 but not yet published. As far as I understand the issue is that cargo/rustc is now more strict on these checks, actually failing the build when these files are missing.

@oconnor663
Copy link
Author

Ok, now I see why I wasn't repro'ing this locally. I was using the default rustup profile, so rustup update was doing this:

info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'                                                                                                                           
info: latest update on 2020-06-12, rust version 1.46.0-nightly (a37c32e2d 2020-06-11)                                                                                                          
info: skipping nightly which is missing installed component 'rustfmt-preview'                                                                                                                  

But on CI, I was doing rustup set profile minimal, so I was able to pick up that build. Presumably in a few days when a more complete nightly build comes out, everyone running the default profile will start seeing this issue on nightly too.

@oconnor663
Copy link
Author

I just confirmed that adding this to my Cargo.toml fixes the problem:

[patch.crates-io]
remove_dir_all = { git = 'https://github.com/XAMPPRocky/remove_dir_all' }

Based on that, could you publish current master as a v0.5.3 release? I think that would fix most callers automatically.

@oconnor663
Copy link
Author

oconnor663 commented Jun 12, 2020

I just filed rust-lang/rust#73282 upstream. EDIT: Looks like this is tracked at rust-lang/cargo#8351 and already fixed by rust-lang/cargo#8353.

@oconnor663 oconnor663 changed the title build error in CI, possibly due to this crate? unclear? latest nightly toolchain (a37c32e2d 2020-06-11) fails to build this crate: "file with name 'README.md' was not found" Jun 12, 2020
@XAMPPRocky
Copy link
Owner

I’ll publish a patch release shortly that should address the issue.

@kvark
Copy link

kvark commented Jun 12, 2020

We are also hit by this in gfx-rs land. Looking forward to a patch!

@XAMPPRocky
Copy link
Owner

This has been fixed in 0.5.3.

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

4 participants