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 install of cargo-espflash failing to build "cargo" dependency #444

Closed
mykmelez opened this issue Jul 13, 2023 · 3 comments
Closed

Comments

@mykmelez
Copy link
Contributor

cargo install of cargo-espflash started failing for me this morning due to a build failure in the "cargo" dependency:

> cd cargo-espflash
> cargo install --path .
…
error[E0063]: missing field `rust_version` in initializer of `NewCrate`
   --> /Users/myk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-0.71.0/src/cargo/ops/registry.rs:383:14
    |
383 |             &NewCrate {
    |              ^^^^^^^^ missing `rust_version`

For more information about this error, try `rustc --explain E0063`.
error: could not compile `cargo` (lib) due to previous error
error: failed to compile `cargo-espflash v2.0.1-dev (/Users/myk/Projects/espflash/cargo-espflash)`, intermediate artifacts can be found at `/Users/myk/Projects/espflash/target`
@jessebraham
Copy link
Member

I've published version 2.0.1 which includes the fix for this problem.

@kevin-june
Copy link

kevin-june commented Jul 13, 2023

@jessebraham @mykmelez I have some fear that this issue will reappear: cargo v0.72.0 was yanked not long after it was released!

For reference - it appears that this issue was introduced in rust-lang/cargo#12041 and work to fix it is being tracked in rust-lang/cargo#12354.

@jessebraham
Copy link
Member

Thanks for the update, that's some unfortunate timing 😅 For the time being you can still install using --locked despite the dependency being yanked. I will keep an eye on the situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants