Cargo: 由于README.md,无法从crates.io建立项目

创建于 2020-06-12  ·  3评论  ·  资料来源: rust-lang/cargo

问题

我无法构建和运行板条箱dotenv的测试。

脚步

我在尝试构建使用create dotenv的项目时遇到问题。

我正在docker rust:1.44.0内部运行
我已每晚安装一次:

rustup toolchain install nightly
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: downloading component 'cargo'
  5.0 MiB /   5.0 MiB (100 %)   1.5 MiB/s in  2s ETA:  0s
info: downloading component 'rust-std'
 15.9 MiB /  15.9 MiB (100 %)  15.0 MiB/s in  1s ETA:  0s
info: downloading component 'rustc'
 47.3 MiB /  47.3 MiB (100 %)  10.9 MiB/s in  5s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-std'
 15.9 MiB /  15.9 MiB (100 %)   9.1 MiB/s in  1s ETA:  0s
info: installing component 'rustc'
 47.3 MiB /  47.3 MiB (100 %)   9.9 MiB/s in  4s ETA:  0s

  nightly-x86_64-unknown-linux-gnu installed - rustc 1.46.0-nightly (a37c32e2d 2020-06-11)

info: checking for self-updates

现在它给了我:

 cargo +nightly test
error: failed to download `dotenv v0.15.0`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/dotenv-0.15.0/Cargo.toml`

Caused by:
  readme file with name '../README.md' was not found

我试图从项目中删除自述文件,但由于具有相同问题的依赖关系而将失败:
https://github.com/dotenv-rs/dotenv/pull/52

可能的解决方案)

添加一个选项以忽略丢失的README.md文件。

笔记

https://github.com/dotenv-rs/dotenv/issues/51
https://stackoverflow.com/questions/62336892/failed-to-build-dotenv-v0-15-0-rust-cargo

C-bug

最有用的评论

感谢您的报告。 该问题已得到修复(请参阅#8351),并有望在第二天晚上进行(如果https://github.com/rust-lang/rust/pull/73266在UTC午夜之前着陆)。

所有3条评论

感谢您的报告。 该问题已得到修复(请参阅#8351),并有望在第二天晚上进行(如果https://github.com/rust-lang/rust/pull/73266在UTC午夜之前着陆)。

感谢您的报告。 此问题已得到解决(请参阅#8351),并有望在下一个每晚进行(如果rust-lang / rust#73266在UTC午夜之前着陆)。

@ehuss你知道第二天晚上什么时候发布?
此外,在此之前是否有任何解决方法?

发布通常在世界标准时间01:00之前完成。 解决方法是每天晚上安装一个。

此页面是否有帮助?
0 / 5 - 0 等级