Skip to content

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

Open
@lolbinarycat

Description

@lolbinarycat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions