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

Build errors on bacon v1.2.1 #55

Closed
dbeckwith opened this issue Oct 18, 2021 · 9 comments
Closed

Build errors on bacon v1.2.1 #55

dbeckwith opened this issue Oct 18, 2021 · 9 comments

Comments

@dbeckwith
Copy link

Trying to upgrade bacon from v1.1.8 to v1.2.1 on Rust 1.55.0, I get the following build errors:

error[E0659]: `minimad` is ambiguous (name vs any other name during import resolution)
 --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-1.2.1/src/list_jobs.rs:3:5
  |
3 |     minimad::*,
  |     ^^^^^^^ ambiguous name
  |
  = note: `minimad` could refer to a crate passed with `--extern`
  = help: use `::minimad` to refer to this crate unambiguously
note: `minimad` could also refer to the crate imported here
 --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-1.2.1/src/list_jobs.rs:4:5
  |
4 |     termimad::*,
  |     ^^^^^^^^^^^
  = help: use `self::minimad` to refer to this crate unambiguously

error[E0308]: mismatched types
  --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-1.2.1/src/list_jobs.rs:26:32
   |
26 |     skin.print_owning_expander(&expander, &TextTemplate::from(MD));
   |                                ^^^^^^^^^ expected struct `termimad::minimad::OwningTemplateExpander`, found struct `minimad::OwningTemplateExpander`
   |
   = note: expected reference `&termimad::minimad::OwningTemplateExpander<'_>`
              found reference `&minimad::OwningTemplateExpander<'_>`

error[E0308]: mismatched types
  --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-1.2.1/src/list_jobs.rs:26:43
   |
26 |     skin.print_owning_expander(&expander, &TextTemplate::from(MD));
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^ expected struct `termimad::minimad::TextTemplate`, found struct `minimad::TextTemplate`
   |
   = note: expected reference `&termimad::minimad::TextTemplate<'_>`
              found reference `&minimad::TextTemplate<'_>`

error[E0308]: mismatched types
   --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-1.2.1/src/state.rs:254:17
    |
254 |                 Composite::from_inline(&status),
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `termimad::minimad::Composite`, found struct `minimad::Composite`

error[E0308]: mismatched types
   --> $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-1.2.1/src/state.rs:256:17
    |
256 |                 Alignment::Left,
    |                 ^^^^^^^^^^^^^^^ expected enum `termimad::Alignment`, found enum `minimad::Alignment`

Some errors have detailed explanations: E0308, E0659.
For more information about an error, try `rustc --explain E0308`.
error: failed to compile `bacon v1.2.1`, intermediate artifacts can be found at `/tmp/cargo-installEksTGS`

Let me know if you need more info.

@Canop
Copy link
Owner

Canop commented Oct 18, 2021

Hum... this is strange. I'll have to search...

It really looks like a mismatch in versions of minimad and termimad but I didn't expect it as I'm commiting the Cargo.lock file too.

@Canop
Copy link
Owner

Canop commented Oct 18, 2021

Can you tell me on what platform you're building ?

@dbeckwith
Copy link
Author

I'm on Ubuntu 18.04, the target triple is stable-x86_64-unknown-linux-gnu.

@dbeckwith
Copy link
Author

Here are the versions being built from the build output:

   Compiling proc-macro2 v1.0.30
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.80
   Compiling libc v0.2.104
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.0.1
   Compiling memchr v2.4.1
   Compiling serde_derive v1.0.130
   Compiling crossbeam-utils v0.8.5
   Compiling serde v1.0.130
   Compiling log v0.4.14
   Compiling lazy_static v1.4.0
   Compiling scopeguard v1.1.0
   Compiling crossbeam-epoch v0.9.5
   Compiling parking_lot_core v0.8.5
   Compiling signal-hook v0.3.10
   Compiling crossbeam-queue v0.3.2
   Compiling bitflags v1.3.2
   Compiling once_cell v1.8.0
   Compiling ryu v1.0.5
   Compiling smallvec v1.7.0
   Compiling semver v1.0.4
   Compiling regex-syntax v0.6.25
   Compiling unicode-segmentation v1.8.0
   Compiling serde_json v1.0.68
   Compiling camino v1.0.5
   Compiling argh_shared v0.1.6
   Compiling same-file v1.0.6
   Compiling itoa v0.4.8
   Compiling anyhow v1.0.44
   Compiling file-size v1.0.3
   Compiling arrayvec v0.5.2
   Compiling utf8parse v0.2.0
   Compiling unicode-width v0.1.9
   Compiling instant v0.1.12
   Compiling lock_api v0.4.5
   Compiling minimad v0.9.0
   Compiling minimad v0.8.0
   Compiling memoffset v0.6.4
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling walkdir v2.3.2
   Compiling heck v0.3.3
   Compiling crossbeam-channel v0.5.1
   Compiling aho-corasick v0.7.18
   Compiling quote v1.0.10
   Compiling signal-hook-registry v1.4.0
   Compiling mio v0.7.14
   Compiling time v0.1.43
   Compiling inotify-sys v0.1.5
   Compiling filetime v0.2.15
   Compiling dirs-sys-next v0.1.2
   Compiling parking_lot v0.11.2
   Compiling crossbeam-deque v0.8.1
   Compiling vte_generate_state_changes v0.1.1
   Compiling inotify v0.9.5
   Compiling directories-next v2.0.0
   Compiling signal-hook-mio v0.2.1
   Compiling crossbeam v0.8.1
   Compiling crossterm v0.21.0
   Compiling notify v5.0.0-pre.13
   Compiling regex v1.5.4
   Compiling chrono v0.4.19
   Compiling vte v0.8.0
   Compiling thiserror-impl v1.0.30
   Compiling argh_derive v0.1.6
   Compiling lazy-regex-proc_macros v2.2.1
   Compiling lazy-regex v2.2.1
   Compiling argh v0.1.6
   Compiling thiserror v1.0.30
   Compiling proc-status v0.1.1
   Compiling termimad v0.16.3
   Compiling cli-log v2.0.0
   Compiling cargo-platform v0.1.2
   Compiling toml v0.5.8
   Compiling cargo_metadata v0.14.0
   Compiling bacon v1.2.1

@Canop
Copy link
Owner

Canop commented Oct 18, 2021

OK, I get it. The problem is probably the reexported minimad in termimad. Termimad being a lib doesn't freeze versions in a Cargo.toml file.

I should probably release a fixed version soon.

@Canop Canop closed this as completed in ba8e8ab Oct 18, 2021
@Canop
Copy link
Owner

Canop commented Oct 18, 2021

Did you build from source or with cargo install from crates.io ? In the first case, can you check the last commit solve the problem for you ?

@dbeckwith
Copy link
Author

I used cargo install from crates.io

@Canop
Copy link
Owner

Canop commented Oct 18, 2021

OK, I'll make a release

@dbeckwith
Copy link
Author

v1.2.2 installed without an issue, thanks!

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

2 participants