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

Fail to compile cargo-c v0.9.27+cargo-0.74.0 using Rust 1.76.0 #378

Closed
rofferom opened this issue Jun 18, 2024 · 3 comments
Closed

Fail to compile cargo-c v0.9.27+cargo-0.74.0 using Rust 1.76.0 #378

rofferom opened this issue Jun 18, 2024 · 3 comments

Comments

@rofferom
Copy link

My project is still using Rust 1.76.0, and I'm currently targeting cargo-c 0.9.27 that used to be compatible with my toolchain version.

However since yesterday:

To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Caused by:
  package cargo-util v0.2.12` cannot be built because it requires rustc 1.77 or newer, while the currently active rustc version is 1.76.0
  Try re-running cargo install with --locked

cargo-util 0.2.12 has been released yesterday and it requires at least Rust 1.77.0. Should cargo-c fix a specific version of cargo-util since it can introduce breaking changes ?

@sdroege
Copy link
Contributor

sdroege commented Jun 18, 2024

You'll have to make use of the Cargo.lock that cargo-c 0.9.27 was released with, or get a fixed cargo (see rust-lang/cargo#13873 etc).

@lu-zero
Copy link
Owner

lu-zero commented Jun 18, 2024

you can use cargo install --locked or run cargo update --precise passing the correct cargo-util version you want.

@rofferom
Copy link
Author

Thanks for your quick feedbacks, it fixed my issue 👍

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