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

failed to select a version for env_logger which could resolve this conflict #2303

Closed
cxp-13 opened this issue Aug 6, 2024 · 4 comments
Closed

Comments

@cxp-13
Copy link

cxp-13 commented Aug 6, 2024

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
@casey
Copy link
Owner

casey commented Aug 6, 2024

I'm not able to reproduce this. What version of Rust are you using?

@cxp-13
Copy link
Author

cxp-13 commented Aug 7, 2024

It's fail on cargo 1.70.0 (ec8a8a0ca 2023-04-25), but success on cargo 1.80.0 (376290515 2024-07-16)

@laniakea64
Copy link
Contributor

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 -

rust-version = "1.70"

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:

warn!("Failed to set CTRL-C handler: {error}");

info!("Parsing command line arguments…");

@casey
Copy link
Owner

casey commented Aug 7, 2024

Although, does just need to depend on env_logger and log? AFAICT it's only used in two places:

Good point! I removed logging in #2305.

I also bumped the MSRV to 1.74 in #2306, and confirmed that it builds with 1.74, so I think this can be closed.

@cxp-13 cxp-13 closed this as completed Aug 8, 2024
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

3 participants