Skip to content

v0.25/v0.25.1 does not build with cargo-1.70.0 (feature/dependency problem with env_logger and/or clap_builder) #2094

Closed
@z1atk0

Description

@z1atk0

Describe the bug
Out of old habit, I'm usually "rolling my own" instead of downloading binaries. The latest gitui-v0.25 does not build with cargo-1.70.0 for me, although this version should be fine according to the published build requirements.

To Reproduce

  1. download and extract v0.25 source tarball
  2. cd into gitui-0.25.0
  3. make build-release
  4. see the build fail immediately
[zlatko@disclosure:~/usrlocal/src]$ cd gitui-0.25.0/
[zlatko@disclosure:~/usrlocal/src/gitui-0.25.0]$ make build-release 
cargo build --release
    Updating crates.io index
error: failed to select a version for `env_logger`.
    ... required by package `asyncgit v0.25.0 (/usr/local/src/gitui-0.25.0/asyncgit)`
versions that meet the requirements `^0.11` (locked to 0.11.2) are: 0.11.2

the package `asyncgit` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
 It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.


failed to select a version for `env_logger` which could resolve this conflict
make: *** [Makefile:19: build-release] Error 101
[zlatko@disclosure:~/usrlocal/src/gitui-0.25.0]$ cargo -V
cargo 1.70.0

Expected behavior
Should either build fine as usual, or the build requirements should be updated (in case my rust/cargo is too old).

Context (please complete the following information):

  • OS/Distro + Version: Slackware64 15.0
  • GitUI Version 0.25
  • Rust version: 1.70.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions