-
Notifications
You must be signed in to change notification settings - Fork 318
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
build: add rust-toolchain.toml
#4613
base: main
Are you sure you want to change the base?
Conversation
Follow-up from discussion at https://discord.com/channels/968932220549103686/1288926971719323762 I don't think we achieved consensus in that thread. We could use `stable` or `nightly` here instead if we prefer. Note that user `rustup` overrides are still respected in the presence of a `rust-toolchain.toml`.
For reference, there's a previous attempt: #1913 (I personally don't like |
One reason in favor of Besides worktrees, I often use different machines, including ephemeral cloud machines that don't have my previous overrides configured. It's annoying to have to manually configure the Rust version every time I freshly check out the repository. I'm open to other solutions. (Of course, if you specifically do want to use the default Rust toolchain for every worktree, then this gets in the way of that. Maybe setting |
If we go with this, could you add an explanation somewhere of how to override it? Update: More generally, I think a few updates to contributing.md would have to go with it, e.g. https://martinvonz.github.io/jj/prerelease/contributing/#summary. Is there a way to make
I'd just do I wish there was a way to define a |
👍 Looking at the docs now, I think adding
I think this would be ideal but I couldn't find a way to do it.
Hmm, but then I'd either download new nightly toolchains as they come out, or I'd have to update all invocations of Rust commands with the new version.
|
I think you are right, this feature doesn't seem to exist. A couple of links to relevant issues. It doesn't look like either of them is solved or about to be solved, which is a pity, it would have helped a lot. Toolchain aliases & supporting multiple toolchains in Supporting MSRV specifically: rust-lang/rustup#1484 Reference link to the current docs (I imagine many of us already were looking at it, but I keep losing the link): https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file |
Need to update docs |
Follow-up from discussion at https://discord.com/channels/968932220549103686/1288926971719323762
I don't think we achieved consensus in that thread. We could use
stable
ornightly
here instead if we prefer. Note that userrustup
overrides are still respected in the presence of arust-toolchain.toml
.Checklist
If applicable:
CHANGELOG.md