Skip to content

fix(install): vargai works in the same terminal; no GitHub API rate limit - #250

Merged
SecurityQQ merged 1 commit into
mainfrom
fix/installer-works-in-this-shell
Oct 29, 2026
Merged

SecurityQQ merged 1 commit into
mainfrom
fix/installer-works-in-this-shell

Conversation

@SecurityQQ

Copy link
Copy Markdown
Contributor

Two problems from the first real install:

  1. zsh: command not found: vargai straight after install. curl | sh runs in a child process and cannot change the PATH of the terminal that started it. Now the installer 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. It edits the shell profile only when there is no such directory, and then says plainly to run the export line.
  2. "no vargai release found" behind a shared IP. The anonymous GitHub API allows 60 calls an hour per IP. The latest version now comes from the github.com/…/releases/latest redirect, which is a page and not rate-limited, with the API as the fallback. Same change in install.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 foreign vargai in ~/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

…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>
@SecurityQQ
SecurityQQ merged commit afb6514 into main Oct 29, 2026
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.

1 participant