Skip to content

Rustup doesn't play well with uppercased proxy names on Windows #3848

Closed as not planned
@jaraco

Description

@jaraco

Verification

Problem

Attempting to install Rust on Windows 11 for ARM, I was following the directions at https://www.rust-lang.org/tools/install. I downloaded the 64-bit installer, then attempted to run it from my shell/terminal that I had open, but the invocation failed with an error:

 ~ [1] # ./rustup-init
error: unknown proxy name: 'RUSTUP-INIT'; valid proxy names are 'rustc', 'rustdoc', 'cargo', 'rust-lldb', 'rust-gdb', 'rust-gdbgui', 'rls', 'cargo-clippy', 'clippy-driver', 'cargo-miri', 'rust-analyzer', 'rustfmt', 'cargo-fmt'

Invoking the command from powershell or Explorer, the command succeeds, so isn't a blocking issue, but it would be nice not to have an obscure error when trying to invoke from my preferred shell.

Steps

  1. Download rustup-init, e.g. https --download -q static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe.
  2. Using a shell like zsh or xonsh, invoke ./rustup-init (or .\rustup-init or ./rustup-init.exe).

Possible Solution(s)

In GitSquared/edex-ui#1124 (comment), another user was having a similar issue, which seems to be rooted in how ARG0 is set/cleared between processes. Perhaps the same technique could be applied to rustup-init.

In #3237, a similar issue was encountered when rust-analyzer was integrated into rustup, which was seemingly fixed by adding rust-analyzer to the rustup book, but I'm unsure how that's relevant or how it would apply to rustup-init.

Notes

No response

Rustup version

~ [1] # powershell -c './rustup-init --version'
rustup-init 1.27.1 (54dd3d00f 2024-04-24)

Installed toolchains

n/a

OS version

~ # platform.uname()
uname_result(system='Windows', node='bulletproof', release='11', version='10.0.22631', machine='ARM64')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions