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

Step “host” fails in CI for rust edition 2024 #1769

Open
jan-ferdinand opened this issue Feb 21, 2025 · 5 comments
Open

Step “host” fails in CI for rust edition 2024 #1769

jan-ferdinand opened this issue Feb 21, 2025 · 5 comments

Comments

@jan-ferdinand
Copy link

When trying to create binaries using the fresh-off-the-press rust edition 2024, CI fails during step dist host. Apparently, the rust version in use is 1.84.1 (checksum 66221abde, release date 2024-11-19), which won't work for rust edition 2024. Could it be that the artifact that's loaded during step Install cached dist is out of date?

Locally, dist plan, dist build, and dist host all succeed.

@dkorunic
Copy link

dkorunic commented Feb 23, 2025

Same issue here. Easy fix for this is to manually specify toolchain in rust-toolchain.toml for your project, for instance as follows:

[toolchain]
channel = "1.85.0"

@graemer957
Copy link

Thanks, @dkorunic that fixed it for me mainmatter/rust-workshop-runner@5d54cc8 👍🏻

@jan-ferdinand
Copy link
Author

manually specify toolchain in toolchain.toml

Minor detail: it's rust-toolchain.toml. (See also.) Thanks for the workaround. 🙂

@gtema
Copy link
Contributor

gtema commented Feb 24, 2025

sadly the workaround is not suitable for me since I also depend on nightly for fuzzung, so creating overrides of overrides is just sad

@jan-ferdinand
Copy link
Author

jan-ferdinand commented Feb 24, 2025

@gtema, you might be able to use a custom build step and the RUSTUP_TOOLCHAIN environment variable described here.

(See also this toy repo making use of a custom build step to set an environment variable (albeit a different one). The specifc places to look at are here and here. In this comment, I list a small number of gottchas when using dist's custom build steps.)

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

4 participants