Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
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
- Download rustup-init, e.g.
https --download -q static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe
. - Using a shell like
zsh
orxonsh
, 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')