fix(sf-core-installer): make postinstall binary download non-fatal#13660
fix(sf-core-installer): make postinstall binary download non-fatal#13660lobowarren0 wants to merge 1 commit into
Conversation
The postinstall script exits 1 when the installer binary can't be downloaded (e.g. behind a corporate proxy/firewall), which aborts the entire `npm install` and forces users to run `npm install --ignore-scripts`. Since the binary is already fetched lazily on first use in run(), the postinstall download is best-effort: it now warns and lets the install succeed, while the runtime path stays strict and still fails if the binary genuinely can't be obtained.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesBest-effort binary download on install failure
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The postinstall script exits 1 when the installer binary can't be downloaded (e.g. behind a corporate proxy/firewall), which aborts the entire
npm installand forces users to runnpm install --ignore-scripts.Since the binary is already fetched lazily on first use in
run(), the postinstall download is best-effort: it now warns and lets the install succeed, while the runtime path stays strict and still fails if the binary genuinely can't be obtained.Addresses: obvious bug fix
postInstall.jsfailure should not abortnpm installwhen the binary is recoverable at runtime.Summary by CodeRabbit