Skip to content

fix: respect CARGO_HOME in install script#333

Open
xfocus3 wants to merge 1 commit into
Byron:mainfrom
xfocus3:fix/install-respects-cargo-home-279
Open

fix: respect CARGO_HOME in install script#333
xfocus3 wants to merge 1 commit into
Byron:mainfrom
xfocus3:fix/install-respects-cargo-home-279

Conversation

@xfocus3
Copy link
Copy Markdown

@xfocus3 xfocus3 commented Jun 1, 2026

Summary

  • Use ${CARGO_HOME:-$HOME/.cargo}/bin as the install script's default destination.
  • Keep --to as an explicit override.
  • Update the help text to describe the CARGO_HOME-aware default.

Closes #279.

Verification

  • sh -n ci/install.sh
  • Fake curl/tar harness verified:
    • CARGO_HOME=/tmp/custom defaults to /tmp/custom/bin
    • unset CARGO_HOME defaults to $HOME/.cargo/bin
    • --to /tmp/explicit still overrides both
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Installation should take CARGO_HOME into account for default location

1 participant