-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
use rust 1.68 in rust-toolchain.toml #7891
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's kind of annoying that we have to use this workaround. Maybe upstream can deal with rust-toolchain.tonl field better in the future.
There are a bunch of closed issues/PRs about automatically detecting the rust version from the rust-toolchain.tonl file but no issues about ignoring/overwriting that file. Perhaps they will be open to that
Regardless thanks for investigating!
I was looking into that as well we could override the tool chain maybe: https://rust-lang.github.io/rustup/overrides.html |
Yeah an directory overwrite would again have to be done during every CI run so it's not better than just deleting the file temporarily |
Btw. for the release CI' doesn't that also use rustup? I think the rust-toolchain.toml file always takes precedence no matter his we configure CI. The rust-toolchain workflow works by installing the toolchain and setting the rustup default toolchain. It does nothing soecicial so just like locally the rust-toolchain.toml file always takes priority |
Ah nvm I mussed that the release CI does the exact same thing as this PR (just with stable jsntead if MSRV). So it's reasonable to do the same here I think |
yeah we remove the rust-toolchain.toml in release, also I think we can set the |
The env variabke would be yet another place where we would have to set the MSRV tough. I think J would prefer to just remove the file in CI. I missed ut before but release CI already does this too :D |
I think we actually want to keep the in-tree |
fixes the problem found in #7814 (comment) which was an existing problem in helix that could occur while file-walking, this occured due to a bug in rust which was fixed and in included in the 1.68 release. This pr only updates the rust-toolchain.toml so that users building from source won't encounter this bug, but our msrv is still 1.65 which is what we check in CI. As before releases are still built with the latest rust stable so nothing needs to change there.