fix: restore fast-path comment indentation, correct reproduce script claim

Address bot review findings:
- Indent the three 'Fast path' comment blocks to match surrounding code
- Reproduce script header no longer claims the fast path catches brew
  paths with a minimal PATH — the hardcoded fallbacks do that; the fast
  path only sees binaries already in the inherited PATH
This commit is contained in:
Mayuresh Kadu
2026-08-20 18:14:41 +01:00
parent da91e70efe
commit 3edc765ddd
2 changed files with 16 additions and 15 deletions
+4 -3
View File
@@ -25,9 +25,10 @@
* spawnSync($SHELL, ['-il', '-c', 'env -0'], { timeout: 5000 })
*
* If the shell startup is slow (>5s due to nvm, pyenv, etc.), this times
* out and PATH stays minimal. The fast-path (Step 3b) catches standard brew
* paths even with minimal PATH, and all shell probes now have a 5s timeout
* to prevent blocking startup indefinitely.
* out and PATH stays minimal. The hardcoded fallback paths catch standard
* brew locations, the fast-path (Step 3b) catches binaries already visible
* in the inherited PATH without sourcing shell config, and all shell probes
* now have a 5s timeout to prevent blocking startup indefinitely.
*/
import fs from 'node:fs';