rustup: Attempting to install rust with rustup-cli with $SHELL=zsh fails with assertion
Message is thread 'main' panicked at 'assertion failed: (left == right)(left:2, right: 1)', src/rustup-cli/self_update.rs:495
The line in question seems to check that there is only one unix shell profile file in the list to be checked. But if the user’s $SHELL is zsh, the list will contain both .profile and .zprofile and fail with an assertion error.
Setting the user’s SHELL var to something non-zsh works around this problem temporarily.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 21
- Comments: 16 (6 by maintainers)
Temporary fix is
curl https://sh.rustup.rs -sSf | SHELL=/bin/bash shYeah, same issue for me. And here is the stack backtrace:
There are numerous paths rustup can take to solve this issue:
.profileconfig..profileif the shell is unknown by rustup..profileand to the config of the running shell.My vote goes to appending to the config of the running shell or
.profilewhen that shell is unknown.