Skip to content

--force-non-host warning is misleading #4261

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

Open
2 tasks done
lolbinarycat opened this issue Mar 22, 2025 · 1 comment
Open
2 tasks done

--force-non-host warning is misleading #4261

lolbinarycat opened this issue Mar 22, 2025 · 1 comment
Labels

Comments

@lolbinarycat
Copy link

lolbinarycat commented Mar 22, 2025

Verification

Problem

the error: DEPRECATED: future versions of rustup will require --force-non-host to install a non-host toolchain as the default. warning shows up, even if you are installing a non-default toolchain

Steps

on a glibc linux system, run rustup toolchain add nightly-x86_64-unknown-linux-musl

Possible Solution(s)

If --force-non-host is to be required when installing any non-host toolchain, the "as the default" text should be removed. If the warning description is correct, the warning should only appear when trying to install a default toolchain.

Notes

The "I am on the latest version" checkbox should be optional, as the latest rustup has not yet been packaged for nix.

Rustup version

rustup 1.26.0 (1980-01-01)

Installed toolchains

nightly-2025-02-16-x86_64-unknown-linux-gnu
nightly-2025-02-26-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)
nightly-x86_64-unknown-linux-musl
stage1

OS version

NixOS 24.11 (Vicuna)
24.11.712909.1dab772dd4a6
@rami3l
Copy link
Member

rami3l commented Mar 23, 2025

@lolbinarycat Hmmm, we don't have that message any more: https://github.com/search?q=repo%3Arust-lang%2Frustup%20%22future%20versions%20of%20rustup%20will%20require%22&type=code, because it IS the default behavior now since #3982.

PS: as the default doesn't mean "as the default toolchain", but "as the default behavior". I get your idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants