Skip to content

cargo install espup fails [RESOLVED] #521

@a937983423

Description

@a937983423

Compiling espup v0.15.1
error[E0308]: mismatched types
--> /home/debian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/espup-0.15.1/src/lib.rs:29:47
|
29 | indicatif_log_bridge::LogWrapper::new(PROCESS_BARS.clone(), logger)
| ------------------------------------- ^^^^^^^^^^^^^^^^^^^^ expected indicatif::multi::MultiProgress, found MultiProgress
| |
| arguments to this function are incorrect
|
note: two different versions of crate indicatif are being used; two types coming from two different versions of the same crate are different types even if they look the same
|
::: /home/debian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.18.0/src/multi.rs:18:1
|
18 | pub struct MultiProgress {
| ^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type indicatif::multi::MultiProgress
--> /home/debian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.17.11/src/multi.rs:18:1
|
18 | pub struct MultiProgress {
| ^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type MultiProgress
|
::: /home/debian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/espup-0.15.1/src/lib.rs:29:9
|
29 | indicatif_log_bridge::LogWrapper::new(PROCESS_BARS.clone(), logger)
| -------------------- one version of crate indicatif used here, as a dependency of crate indicatif_log_bridge
|
::: /home/debian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/espup-0.15.1/src/toolchain/mod.rs:42:34
|
42 | pub static ref PROCESS_BARS: indicatif::MultiProgress = indicatif::MultiProgress::new();
| --------- one version of crate indicatif used here, as a direct dependency of the current crate
= help: you can use cargo tree to explore your dependency tree
note: associated function defined here
--> /home/debian/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-log-bridge-0.2.3/src/lib.rs:67:12
|
67 | pub fn new(bar: MultiProgress, log: L) -> Self {
| ^^^

For more information about this error, try rustc --explain E0308.
error: could not compile espup (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile espup v0.15.1, intermediate artifacts can be found at /tmp/cargo-installnhIY17.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions