New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rustup-init fails when fish
is installed but without config files generated
#3706
Comments
@4310V343k Thanks for sharing with us your diagnosis! This is indeed a bug with very clear cause, however I'm not sure how we should proceed with it. Previously we do assume if you have a shell installed we should at least make Rust available in it just in case. Of course we can try to create the directory before writing the file (this looks coherent with what we do with other shells), but will this be too invasive? cc @djc |
@4310V343k For the moment being, you may work around the problem by simply running something like |
Seems alright to me to create |
@4310V343k Does our new build work for you? |
This comment was marked as duplicate.
This comment was marked as duplicate.
Because the above PR just missed the previous release, there is a short-term solution before the next release. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path |
@4310V343k @ryan-minato A new beta release is available, would you mind trying it out? |
Problem
I launched a GitHub Codespace, ran
curl https://sh.rustup.rs -sSf | sh
, goterror: could not amend shell profile: '/home/codespace/.config/fish/conf.d/rustup.fish': could not write rcfile file: '/home/codespace/.config/fish/conf.d/rustup.fish': No such file or directory (os error 2)
Even though
fish
is installed in the codespace, its config is not pre-generated and the default shell isbash
.As I understood after 5 minutes of scrolling the code,
rustup
only checks if the shell's binary exists, not if the config files existThis doesn't happen with other shells since their config files are typically located in the home folder
Steps
fish
is on PATHrustup
with default settings (withmodify PATH variable
)Possible Solution(s)
No response
Notes
Looks like conf.d directory is not created automatically even after running
fish
Rustup version
Rustup did not install, but
Installed toolchains
Rustup did not install
The text was updated successfully, but these errors were encountered: