one2html icon indicating copy to clipboard operation
one2html copied to clipboard

Failed to compile 1.1.1 due to dependency conflicts.

Open Arcyne opened this issue 1 year ago • 7 comments

I'm new to rust so I'm working out how to identify the dependencies, but figured I would write up the issue in case it is easier for you to fix.

Error:

   Compiling askama v0.10.5
   Compiling one2html v1.1.1
error[E0308]: mismatched types
  --> /home/rharlicker/.cargo/registry/src/github.com-1ecc6299db9ec823/one2html-1.1.1/src/utils.rs:12:41
   |
12 |     let _state = happylog::set_progress(&bar);
   |                  ---------------------- ^^^^ expected struct `indicatif::progress_bar::ProgressBar`, found struct `ProgressBar`
   |                  |
   |                  arguments to this function are incorrect
   |
   = note: expected reference `&indicatif::progress_bar::ProgressBar`
              found reference `&ProgressBar`
   = note: perhaps two different versions of crate `indicatif` are being used?
note: function defined here
  --> /home/rharlicker/.cargo/registry/src/github.com-1ecc6299db9ec823/happylog-0.2.0/src/console_emitter.rs:93:8
   |
93 | pub fn set_progress(pb: &ProgressBar) -> LogPBState {
   |        ^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `one2html` due to previous error
error: failed to compile `one2html v1.1.1`, intermediate artifacts can be found at `/tmp/cargo-installHKyoZX`

---- Noticed the following in the logs...

   Compiling sanitize-filename v0.3.0
   Compiling indicatif v0.17.0
   Compiling indicatif v0.16.2
   Compiling rand_chacha v0.2.2

-- Did some searching, found cargo tree

rharlicker@DESKTOP-I7RFFUU:/mnt/c/repos/one2html$ rm *.lock
rharlicker@DESKTOP-I7RFFUU:/mnt/c/repos/one2html$ cargo tree -d
    Updating crates.io index
console v0.14.1
└── one2html v1.1.1 (/mnt/c/repos/one2html)

console v0.15.1
├── happylog v0.2.0
│   └── one2html v1.1.1 (/mnt/c/repos/one2html)
├── indicatif v0.16.2
│   └── one2html v1.1.1 (/mnt/c/repos/one2html)
└── indicatif v0.17.0
    └── happylog v0.2.0 (*)

indicatif v0.16.2 (*)
indicatif v0.17.0 (*)

-- I Attempted to fix the Cargo.toml file to override the dependencies to indicatif v0.17.0 but it didn't seem to take event through cargo tree and cargo tree -d looked clean afterwards. (e.g the original error...)

cargo tree

one2html v1.1.1 (/mnt/c/repos/one2html)
├── askama v0.10.5
│   ├── askama_derive v0.10.5 (proc-macro)
│   │   ├── askama_shared v0.11.2
│   │   │   ├── askama_escape v0.10.3
│   │   │   ├── humansize v1.1.1
│   │   │   ├── nom v6.2.1
│   │   │   │   ├── bitvec v0.19.6
│   │   │   │   │   ├── funty v1.1.0
│   │   │   │   │   ├── radium v0.5.3
│   │   │   │   │   ├── tap v1.0.1
│   │   │   │   │   └── wyz v0.2.0
│   │   │   │   ├── funty v1.1.0
│   │   │   │   ├── lexical-core v0.7.6
│   │   │   │   │   ├── arrayvec v0.5.2
│   │   │   │   │   ├── bitflags v1.3.2
│   │   │   │   │   ├── cfg-if v1.0.0
│   │   │   │   │   ├── ryu v1.0.11
│   │   │   │   │   └── static_assertions v1.1.0
│   │   │   │   └── memchr v2.3.4
│   │   │   │   [build-dependencies]
│   │   │   │   └── version_check v0.9.4
│   │   │   ├── num-traits v0.2.15
│   │   │   │   [build-dependencies]
│   │   │   │   └── autocfg v1.1.0
│   │   │   ├── percent-encoding v2.1.0
│   │   │   ├── proc-macro2 v1.0.43
│   │   │   │   └── unicode-ident v1.0.3
│   │   │   ├── quote v1.0.21
│   │   │   │   └── proc-macro2 v1.0.43 (*)
│   │   │   ├── serde v1.0.143
│   │   │   │   └── serde_derive v1.0.143 (proc-macro)
│   │   │   │       ├── proc-macro2 v1.0.43 (*)
│   │   │   │       ├── quote v1.0.21 (*)
│   │   │   │       └── syn v1.0.99
│   │   │   │           ├── proc-macro2 v1.0.43 (*)
│   │   │   │           ├── quote v1.0.21 (*)
│   │   │   │           └── unicode-ident v1.0.3
│   │   │   ├── syn v1.0.99 (*)
│   │   │   └── toml v0.5.9
│   │   │       └── serde v1.0.143 (*)
│   │   ├── proc-macro2 v1.0.43 (*)
│   │   └── syn v1.0.99 (*)
│   ├── askama_escape v0.10.3
│   └── askama_shared v0.11.2 (*)
├── color-eyre v0.5.11
│   ├── backtrace v0.3.59
│   │   ├── addr2line v0.15.2
│   │   │   └── gimli v0.24.0
│   │   ├── cfg-if v1.0.0
│   │   ├── libc v0.2.132
│   │   ├── miniz_oxide v0.4.4
│   │   │   └── adler v1.0.2
│   │   │   [build-dependencies]
│   │   │   └── autocfg v1.1.0
│   │   ├── object v0.24.0
│   │   └── rustc-demangle v0.1.21
│   │   [build-dependencies]
│   │   └── cc v1.0.73
│   ├── color-spantrace v0.1.6
│   │   ├── once_cell v1.13.1
│   │   ├── owo-colors v1.3.0
│   │   ├── tracing-core v0.1.29
│   │   │   └── once_cell v1.13.1
│   │   └── tracing-error v0.1.2
│   │       ├── tracing v0.1.36
│   │       │   ├── cfg-if v1.0.0
│   │       │   ├── pin-project-lite v0.2.9
│   │       │   ├── tracing-attributes v0.1.22 (proc-macro)
│   │       │   │   ├── proc-macro2 v1.0.43 (*)
│   │       │   │   ├── quote v1.0.21 (*)
│   │       │   │   └── syn v1.0.99 (*)
│   │       │   └── tracing-core v0.1.29 (*)
│   │       └── tracing-subscriber v0.2.25
│   │           ├── sharded-slab v0.1.4
│   │           │   └── lazy_static v1.4.0
│   │           ├── thread_local v1.1.4
│   │           │   └── once_cell v1.13.1
│   │           └── tracing-core v0.1.29 (*)
│   ├── eyre v0.6.8
│   │   ├── indenter v0.3.3
│   │   └── once_cell v1.13.1
│   ├── indenter v0.3.3
│   ├── once_cell v1.13.1
│   ├── owo-colors v1.3.0
│   └── tracing-error v0.1.2 (*)
├── console v0.15.1
│   ├── libc v0.2.132
│   ├── once_cell v1.13.1
│   ├── terminal_size v0.1.17
│   │   └── libc v0.2.132
│   └── unicode-width v0.1.9
├── happylog v0.2.0
│   ├── console v0.15.1 (*)
│   ├── indicatif v0.17.0
│   │   ├── console v0.15.1 (*)
│   │   ├── number_prefix v0.4.0
│   │   └── unicode-width v0.1.9
│   ├── log v0.4.17
│   │   └── cfg-if v1.0.0
│   └── structopt v0.3.26
│       ├── clap v2.34.0
│       │   ├── ansi_term v0.12.1
│       │   ├── atty v0.2.14
│       │   │   └── libc v0.2.132
│       │   ├── bitflags v1.3.2
│       │   ├── strsim v0.8.0
│       │   ├── textwrap v0.11.0
│       │   │   └── unicode-width v0.1.9
│       │   ├── unicode-width v0.1.9
│       │   └── vec_map v0.8.2
│       ├── lazy_static v1.4.0
│       └── structopt-derive v0.4.18 (proc-macro)
│           ├── heck v0.3.3
│           │   └── unicode-segmentation v1.9.0
│           ├── proc-macro-error v1.0.4
│           │   ├── proc-macro-error-attr v1.0.4 (proc-macro)
│           │   │   ├── proc-macro2 v1.0.43 (*)
│           │   │   └── quote v1.0.21 (*)
│           │   │   [build-dependencies]
│           │   │   └── version_check v0.9.4
│           │   ├── proc-macro2 v1.0.43 (*)
│           │   ├── quote v1.0.21 (*)
│           │   └── syn v1.0.99 (*)
│           │   [build-dependencies]
│           │   └── version_check v0.9.4
│           ├── proc-macro2 v1.0.43 (*)
│           ├── quote v1.0.21 (*)
│           └── syn v1.0.99 (*)
├── indicatif v0.17.0 (*)
├── itertools v0.9.0
│   └── either v1.8.0
├── log v0.4.17 (*)
├── mime_guess v2.0.4
│   ├── mime v0.3.16
│   └── unicase v2.6.0
│       [build-dependencies]
│       └── version_check v0.9.4
│   [build-dependencies]
│   └── unicase v2.6.0 (*)
├── once_cell v1.13.1
├── onenote_parser v0.3.0
│   ├── bytes v0.5.6
│   ├── encoding_rs v0.8.31
│   │   └── cfg-if v1.0.0
│   ├── enum-primitive-derive v0.2.2 (proc-macro)
│   │   ├── num-traits v0.2.15 (*)
│   │   ├── quote v1.0.21 (*)
│   │   └── syn v1.0.99 (*)
│   ├── itertools v0.9.0 (*)
│   ├── num-traits v0.2.15 (*)
│   ├── paste v1.0.8 (proc-macro)
│   ├── thiserror v1.0.32
│   │   └── thiserror-impl v1.0.32 (proc-macro)
│   │       ├── proc-macro2 v1.0.43 (*)
│   │       ├── quote v1.0.21 (*)
│   │       └── syn v1.0.99 (*)
│   ├── uuid v0.8.2
│   └── widestring v0.4.3
├── palette v0.5.0
│   ├── approx v0.3.2
│   │   └── num-traits v0.2.15 (*)
│   ├── num-traits v0.2.15 (*)
│   ├── palette_derive v0.5.0 (proc-macro)
│   │   ├── proc-macro2 v1.0.43 (*)
│   │   ├── quote v1.0.21 (*)
│   │   └── syn v1.0.99 (*)
│   └── phf v0.8.0
│       └── phf_shared v0.8.0
│           └── siphasher v0.3.10
│   [build-dependencies]
│   └── phf_codegen v0.8.0
│       ├── phf_generator v0.8.0
│       │   ├── phf_shared v0.8.0 (*)
│       │   └── rand v0.7.3
│       │       ├── getrandom v0.1.16
│       │       │   ├── cfg-if v1.0.0
│       │       │   └── libc v0.2.132
│       │       ├── libc v0.2.132
│       │       ├── rand_chacha v0.2.2
│       │       │   ├── ppv-lite86 v0.2.16
│       │       │   └── rand_core v0.5.1
│       │       │       └── getrandom v0.1.16 (*)
│       │       ├── rand_core v0.5.1 (*)
│       │       └── rand_pcg v0.2.1
│       │           └── rand_core v0.5.1 (*)
│       └── phf_shared v0.8.0 (*)
├── percent-encoding v2.1.0
├── regex v1.4.6
│   ├── aho-corasick v0.7.15
│   │   └── memchr v2.3.4
│   ├── memchr v2.3.4
│   └── regex-syntax v0.6.27
├── sanitize-filename v0.3.0
│   ├── lazy_static v1.4.0
│   └── regex v1.4.6 (*)
└── structopt v0.3.26 (*)

Thoughts?

Arcyne avatar Aug 19 '22 19:08 Arcyne