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

Workflow fails because the rustc version is too old #992

Open
SamusAranX opened this issue May 2, 2024 · 3 comments
Open

Workflow fails because the rustc version is too old #992

SamusAranX opened this issue May 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@SamusAranX
Copy link

I have a scrunkly little project that I tried setting up a GH action for. Yesterday, it worked using rust 1.77.2, but it keeps failing now that I set the project's rust-version to 1.78.0:

error: package `realpha v1.0.2 (/Users/runner/work/realpha/realpha)` cannot be built because it requires rustc 1.78.0 or newer, while the currently active rustc version is 1.77.2

Rust 1.78 basically just came out. Is this a situation where I just have to wait for something upstream to get updated or is this something I can fix?

All the relevant files are here: release.yml, Cargo.toml

@Gankra
Copy link
Member

Gankra commented May 2, 2024

You should be able to handle this by adding a rust-toolchain.toml to your project.

https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file

@SamusAranX
Copy link
Author

Is there no other way to influence which rust version gets used? I don't know if I'm comfortable having a second file with a pinned rust version around when all I want is a minimum version.

@Gankra
Copy link
Member

Gankra commented May 2, 2024

Yeah it's a bit weird but it's the Official Rust Solution to this kinda problem.

@ashleygwilliams ashleygwilliams added the bug Something isn't working label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants