Win7 - rustup-init update - confusing: it seems (maybe not?) rustup-init failing saying cargo should be on PATH but it already is.
Open
Nobody has claimed this yet.
bug
- Dominant language
- Rust
- Stars
- 7k
- Forks
- 1.1k
- Avg merge
- 22h 40m
- Merged PRs (30d)
- 46
Description
Problem
Try to run RUSTUP to update existing system. It runs up to cargo update, then it fails because, allegedly, cargo directory is not on path.
d:\Downloads\Rust>cargo -V
cargo 1.56.0 (4ed5d137b 2021-10-04)
d:\Downloads\Rust>rustup-init.exe -V
rustup-init 1.24.3 (ce5817a94 2021-05-31)
d:\Downloads\Rust>rustup show
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\burov.PC-ANALYTICDEV\.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.56.1 (59eed8a2a 2021-11-01)
d:\Downloads\Rust>path
PATH=C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files ...skip.... ;C:\W
indows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseGit\bin;C:\Prog
ram Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\burov.PC-ANALYTICDEV\.ca
rgo\bin;C:\Users\burov.PC-ANALYTICDEV\scoop\shims;C:\Users\burov.PC-ANALYTICDEV\
AppData\Local\Programs\Fiddler;e:\Microsoft VS Code\bin
Then it fails
d:\Downloads\Rust>rustup-init.exe
Welcome to Rust!
This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.
Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:
C:\Users\burov.PC-ANALYTICDEV\.rustup
This can be modified with the RUSTUP_HOME environment variable.
The Cargo home directory located at:
C:\Users\burov.PC-ANALYTICDEV\.cargo
This can be modified with the CARGO_HOME environment variable.
The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:
C:\Users\burov.PC-ANALYTICDEV\.cargo\bin
This path will then be added to your PATH environment variable by
modifying the HKEY_CURRENT_USER/Environment/PATH registry key.
You can uninstall at any time with rustup self uninstall and
these changes will be reverted.
Current installation options:
default host triple: x86_64-pc-windows-msvc
default toolchain: stable (default)
profile: default
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>
info: profile set to 'default'
info: default host triple is x86_64-pc-windows-msvc
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: default toolchain set to 'stable-x86_64-pc-windows-msvc'
stable-x86_64-pc-windows-msvc unchanged - rustc 1.56.1 (59eed8a2a 2021-11-01)
Rust is installed now. Great!
To get started you may need to restart your current shell.
This would reload its PATH environment variable to include
Cargo's bin directory (%USERPROFILE%\.cargo\bin).
Press the Enter key to continue.
or like that
d:\Downloads\Rust>rustup-init.exe
Welcome to Rust!
This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.
Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:
C:\Users\burov.PC-ANALYTICDEV\.rustup
This can be modified with the RUSTUP_HOME environment variable.
The Cargo home directory located at:
C:\Users\burov.PC-ANALYTICDEV\.cargo
This can be modified with the CARGO_HOME environment variable.
The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:
C:\Users\burov.PC-ANALYTICDEV\.cargo\bin
This path will then be added to your PATH environment variable by
modifying the HKEY_CURRENT_USER/Environment/PATH registry key.
You can uninstall at any time with rustup self uninstall and
these changes will be reverted.
Current installation options:
default host triple: x86_64-pc-windows-msvc
default toolchain: stable (default)
profile: default
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>2
I'm going to ask you the value of each of these installation options.
You may simply press the Enter key to leave unchanged.
Default host triple? [x86_64-pc-windows-msvc]
Default toolchain? (stable/beta/nightly/none) [stable]
Profile (which tools and data to install)? (minimal/default/complete) [default]
Modify PATH variable? (Y/n)
n
Current installation options:
default host triple: x86_64-pc-windows-msvc
default toolchain: stable
profile: default
modify PATH variable: no
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>
info: profile set to 'default'
info: setting default host triple to x86_64-pc-windows-msvc
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: default toolchain set to 'stable-x86_64-pc-windows-msvc'
stable-x86_64-pc-windows-msvc unchanged - rustc 1.56.1 (59eed8a2a 2021-11-01)
Rust is installed now. Great!
To get started you need Cargo's bin directory (%USERPROFILE%\.cargo\bin) in
your PATH
environment variable. This has not been done automatically.
Press the Enter key to continue.
Steps
Just run rustup-init on my system...
Possible Solution(s)
No response
Notes
No response
Rustup version
d:\Downloads\Rust>rustup -V
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.56.1 (59eed8a2a 2021-11-01)`
Installed toolchains
d:\Downloads\Rust>rustup show
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\burov.PC-ANALYTICDEV\.rustup
stable-x86_64-pc-windows-msvc (default)
rustc 1.56.1 (59eed8a2a 2021-11-01)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the rustup-init.exe entry point and reproduce the reported Windows 7 flow using the PATH, rustup version, and installed toolchain shown in the issue. Compare the normal and customized outputs, then determine the expected behavior when Cargo's bin directory is already on PATH; the issue is done when that behavior is clear and the incorrect or confusing output is addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100