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:
@@ -25,9 +25,10 @@
|
|||||||
* spawnSync($SHELL, ['-il', '-c', 'env -0'], { timeout: 5000 })
|
* spawnSync($SHELL, ['-il', '-c', 'env -0'], { timeout: 5000 })
|
||||||
*
|
*
|
||||||
* If the shell startup is slow (>5s due to nvm, pyenv, etc.), this times
|
* 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
|
* out and PATH stays minimal. The hardcoded fallback paths catch standard
|
||||||
* paths even with minimal PATH, and all shell probes now have a 5s timeout
|
* brew locations, the fast-path (Step 3b) catches binaries already visible
|
||||||
* to prevent blocking startup indefinitely.
|
* 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';
|
import fs from 'node:fs';
|
||||||
|
|||||||
Reference in New Issue
Block a user