Problem
I launched a GitHub Codespace, ran curl https://sh.rustup.rs -sSf | sh, got error: 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 is bash.
As I understood after 5 minutes of scrolling the code, rustup only checks if the shell's binary exists, not if the config files exist
This doesn't happen with other shells since their config files are typically located in the home folder
Steps
- Ensure
fish is on PATH
- Ensure fish's config directory doesn't exist
- Run
rustup with default settings (with modify 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
@4310V343k ➜ /tmp/tmp.MNjnDjzYbe $ ./rustup-init -V
rustup-init 1.27.0 (bbb9276d2 2024-03-08)
Installed toolchains
Rustup did not install
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
fishis 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,
rustuponly 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
fishis on PATHrustupwith default settings (withmodify PATH variable)Possible Solution(s)
No response
Notes
Looks like conf.d directory is not created automatically even after running
fishRustup version
Rustup did not install, but
Installed toolchains
Rustup did not install