failed to select a version for `env_logger` which could resolve this conflict
cxp-13 opened this issue · comments
cxp@CXPfromR9000P:~/solana_learn/openbook-v2$ cargo install just --force
Updating crates.io index
Installing just v1.34.0
Updating crates.io index
error: failed to compile `just v1.34.0`, intermediate artifacts can be found at `/tmp/cargo-installhep2UA`
Caused by:
failed to select a version for `env_logger`.
... required by package `just v1.34.0`
versions that meet the requirements `^0.11.0` are: 0.11.5, 0.11.4, 0.11.3, 0.11.2, 0.11.1, 0.11.0
the package `just` 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
I'm not able to reproduce this. What version of Rust are you using?
It's fail on cargo 1.70.0 (ec8a8a0ca 2023-04-25)
, but success on cargo 1.80.0 (376290515 2024-07-16)
This has happened before -
#1898
#1980
In the case of this issue, just
does declare it's supposed to work with Rust/Cargo 1.70 -
Line 15 in f9c2479
But
just
uses Cargo.toml [lints]
, which requires Rust/Cargo 1.74, and https://just.systems/man/en/chapter_84.html says MSRV is actually current stable Rust, i.e. currently 1.80.0.
I can reproduce this issue with Rust 1.70.0, but not with Rust 1.74.1. Should the MSRV declared in Cargo.toml be updated?
Although, does just
need to depend on env_logger
and log
? AFAICT it's only used in two places:
Line 754 in f9c2479
Line 19 in f9c2479