Skip to content
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

Error amending to shell profile #3723

Closed
werdl opened this issue Mar 18, 2024 · 1 comment
Closed

Error amending to shell profile #3723

werdl opened this issue Mar 18, 2024 · 1 comment
Labels

Comments

@werdl
Copy link

werdl commented Mar 18, 2024

Problem

Upon downloading and running in a Github Codespace:

 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
info: downloading installer
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:

  /home/codespace/.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory is located at:

  /home/codespace/.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:

  /home/codespace/.cargo/bin

This path will then be added to your PATH environment variable by
modifying the profile files located at:

  /home/codespace/.profile
  /home/codespace/.bashrc
  /home/codespace/.zshenv
  /home/codespace/.config/fish/conf.d/rustup.fish

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with standard installation (default - just press enter)
2) Customize installation
3) Cancel installation
>

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)

Upon creating the directory tree /home/codespace/.config/fish/conf.d, the error no longer happened. I am not sure why fish is being used - my $SHELL is /bin/bash

Steps

  1. Instantiate a new Github Codespace
  2. Go to rustup.rs and run the given command

Possible Solution(s)

No response

Notes

No response

Rustup version

rustup 1.27.0 (bbb9276d2 2024-03-08)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.76.0 (07dca489a 2024-02-04)`

Installed toolchains

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/codespace/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.76.0 (07dca489a 2024-02-04)
@werdl werdl added the bug label Mar 18, 2024
@djc
Copy link
Contributor

djc commented Mar 18, 2024

Yup, I think that is #3706. We'll hopefully get a 1.27.1 release out soon that will have this fixed.

@djc djc closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants