Repository navigation
feat(installer): add ~/.local/bin to PATH when the installer falls back to it, show a first command that works #1214 - #1215
Conversation
|
Review of the installer PATH setup. I read the
No critical or high issues found. The append-only, idempotent profile write and the test coverage look solid. |
|
Triage of the review:
|
|
Reviewed
|
|
Round 2 triage:
|
|
Reviewed the diff (install.sh, install.ps1, CLI persistence, docs, tests). I did not run the code. The shell logic reads sound, and the opt-out, CI and idempotency handling look careful.
Tests: the shell side is well covered (temp |
|
Round 3 triage (none of the ps1 changes were executed locally; the CI contract job parses and runs the pure helpers):
|
|
Reviewed the diff for
Tests look thorough: the byte-identical output when already on PATH is covered, and the CLI persistence is covered. The PowerShell path is untested locally, as the PR says, so a reviewer on Windows should smoke-test it. This includes the REG_EXPAND_SZ branch. |
|
Round 4 triage:
|
|
Reviewed the diff for
Docs and CHANGELOG: I did not check the CHANGELOG bullet or |
|
Scope change per the updated #1214: removed the PATH scan and manager-dir denylist. Directory choice is back to SQUIRREL_BIN_DIR, the four common dirs, else ~/.local/bin (now added to PATH). Tests, docs and CHANGELOG updated. |
|
Review of the PATH setup change for
Test coverage is good: the shell installer is tested with a temp HOME and PATH, and there is a persistence test on the CLI side. I'd add cases for the false-positive marker and heuristic above. |
|
Reviewed the diff for
Tests cover the env parsing, persistence and registration body, and the shell behaviour is covered by |
5a0f311 to
e9044b2
Compare
|
Round 5: fixed the |
|
Reviewed the diff (installers, CLI persistence, docs). I did not run anything, and I did not read the test files in depth. I found no blocking issues. The append-only, marked, idempotent profile edit and the opt-outs (
Docs and CHANGELOG are updated. The PR description doesn't include the closing "Docs: ... Skill: ..." line that AGENTS.md asks for. |
|
Reviewed the installer and CLI changes. The design is sound: append-only, idempotent, opt-out, CI-aware, and the profile edit is limited to the
|
|
Review of the installer PATH setup. I read the full diff and did not run anything, including Findings:
Security: I found nothing at (high) or (critical). |
|
Review of #1215 (installers put No blocking problems found. The profile edit is append-only and idempotent, it respects
Docs and CHANGELOG are updated, and the PR body has the Docs/Skill line. |
b068a68 to
65ebbf7
Compare
|
Reviewed
|
|
Reviewed the diff for
|
|
Reviewed head: 6d37486 Delta review since e9044b2 (5a5991d, 65ebbf7, 6d37486; the rest is the rebase onto main). Clean, good to merge.
|
… first command that works; report path_setup #1214 Signed-off-by: Nik Cubrilovic <[email protected]>
…dvice after a GITHUB_PATH append #1214 Signed-off-by: Nik Cubrilovic <[email protected]>
… already-configured is on_path #1214 Signed-off-by: Nik Cubrilovic <[email protected]>
…PATH entries expanded, quote the full-path command #1214 Signed-off-by: Nik Cubrilovic <[email protected]>
… trick #1214 Signed-off-by: Nik Cubrilovic <[email protected]>
… existing directory choice #1214 Signed-off-by: Nik Cubrilovic <[email protected]>
…y a PATH= line counts as configured #1214 Signed-off-by: Nik Cubrilovic <[email protected]>
…s configured #1214 Signed-off-by: Nik Cubrilovic <[email protected]>
…hell profile and the Windows User Path Signed-off-by: Nik Cubrilovic <[email protected]>
…dled PATH; installer CI: login shell for bash on macOS Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
6d37486 to
dc25b88
Compare
|
Reviewed
|
Closes #1214
What
install.sh: directory choice is unchanged (SQUIRREL_BIN_DIR, the four common dirs when on PATH and writable, else~/.local/bin). The~/.local/binfallback gets one marked, append-only, idempotent line in the shell's startup file (zsh honoursZDOTDIR; bash macOS~/.bash_profile, Linux~/.bashrc; fishconf.d/squirrel.fish; else~/.profile).SQUIRREL_NO_MODIFY_PATHopts out (manual instructions as before).CInever edits a profile and appends toGITHUB_PATHwhen set.squirrel, the reload hint and a full-pathsquirrel auditcome first. When it can, the output is byte-identical to before (tested).install.ps1: User-scopePathonly (never Machine) plus$env:Path, once, same opt-out and CI behaviour.SQUIRREL_PATH_SETUP(on_path|added|opted_out|ci|failed) forsquirrel self install; the CLI persists it and sendspath_setupwith the install registration (same shape asinstall_source).self install; a failed install leaves a harmless PATH line.SQUIRREL_BIN_DIRthat is off PATH is not written to a profile (only~/.local/binis, spelled with$HOME); it gets the manual instructions andopted_out.Verification
scripts/install-path-setup.test.ts(tempHOME,ZDOTDIR,XDG_CONFIG_HOME, explicitPATH,unameshim) covers each acceptance box except PowerShell execution. Newapps/cli/tests/self/path-setup.test.tscovers persistence and the registration body.install-contract.test.ts,test-suites.ts --run rest(1877 pass), cli typecheck, lint, format:check,make validateall green;shellcheck install.shadds no findings.install.ps1was NOT executed locally (no PowerShell here). It is parsed in CI byinstall-ps-contract.test.ps1, which gains checks for the pure helpers and the opt-out, CI and already-on-PATH branches (none writes the registry). The registry write itself is unexercised.Notes
docs/quickstart.mdx(new "How the installer sets up your PATH") anddocs/cli/self.mdx; CHANGELOG[Unreleased].path_setupis tracked internally; an API that does not know the field ignores it.