Installer: auto-add ~/.local/bin to PATH (instead of aborting) [Tier 2]#199
Draft
mario4tier wants to merge 1 commit into
Draft
Installer: auto-add ~/.local/bin to PATH (instead of aborting) [Tier 2]#199mario4tier wants to merge 1 commit into
mario4tier wants to merge 1 commit into
Conversation
Self-contained implementation spec so an agent can pick this up: make `~/suibase/install` auto-append `~/.local/bin` to the user's shell profile (rustup / `pipx ensurepath` style) instead of aborting with a no-command message when it is not on PATH. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status: DRAFT — task spec for an agent to implement. Not yet implemented.
What
Make
~/suibase/installfix the PATH for the user automatically (rustup /pipx ensurepathstyle) when~/.local/binis not onPATH, instead of aborting with a bare, no-command message. This branch currently contains only the self-contained spec:docs/dev/INSTALLER_PATH_AUTOFIX_PLAN.md. An agent picks up this branch, implements the change ininstall, adds a test, and pushes here.Why
A first-time user (especially on macOS, where
~/.local/binis not on PATH by default and~/.profileis not read by zsh) currently hitsinstallprinting "Please add~/.local/binto your$PATH" with no command and thenexit 1. The docs only link to a generic StackOverflow page. Popular tools (rustup,pipx ensurepath, Homebrew, deno/bun/uv) either auto-edit the profile or print an exact copy-paste command — never a generic link.Where (already scoped in the spec)
install→setup_local_bin_as_needed()(creates dir, early-returns if on PATH, tries sourcing~/.profile, else prints the bare message andexit 1). It already has a commented-out macOS auto-append stub — replace it with a tested implementation.EXIT_TERMINAL_INSTRUCTIONglobal andis_local_bin_on_path()/echo_infohelpers.Acceptance criteria
~/.local/binnot on PATH →installappendsexport PATH="$HOME/.local/bin:$PATH"to the correct profile (zsh→~/.zshrc, bash→~/.bashrc/ macOS~/.bash_profile), idempotently, tells the user to restart their shell, and continues (no abort).~/.profile-fix paths unchanged; quiet mode stays quiet.scripts/tests/(temp HOME) covers append + idempotency + non-abort.docs/src/how-to/install.mdto a fallback once auto-fix lands.Full design, edge cases, testing matrix, and references are in the plan doc on this branch.
🤖 Generated with Claude Code