Repository navigation
fix(install): vargai works in the same terminal; no GitHub API rate limit - #250
Merged
Merged
Conversation
…imit - curl | sh cannot change the PATH of the terminal that ran it, so `vargai` was 'command not found' until a new terminal. Now it links vargai into the first writable directory already on PATH (~/.local/bin, ~/bin, /usr/local/bin, /opt/homebrew/bin; never over another program's vargai), and only edits the shell profile when there is none, saying plainly to run the export line. - The latest version comes from the github.com/…/releases/latest redirect, not the API: 60 anonymous calls an hour per IP failed installs behind a shared IP. The API stays as the fallback. Same in install.ps1. Co-Authored-By: Claude Opus 5.5 <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.
Two problems from the first real install:
zsh: command not found: vargaistraight after install.curl | shruns in a child process and cannot change the PATH of the terminal that started it. Now the installer linksvargaiinto the first writable directory already on PATH (~/.local/bin,~/bin,/usr/local/bin,/opt/homebrew/bin), never over another program'svargai. It edits the shell profile only when there is no such directory, and then says plainly to run theexportline.github.com/…/releases/latestredirect, which is a page and not rate-limited, with the API as the fallback. Same change ininstall.ps1.Tested on macOS with fake homes: link into
~/bin(works in the same shell, no profile edit), no writable dir (profile + export hint), re-run (same link), a foreignvargaiin~/bin(left alone, linked in~/.local/bin, warns that it comes first). All of these ran while the API answered 403.🤖 Generated with Claude Code