Skip to content

fix: use execFile to bypass shell command resolution-W-23662030 - #897

Merged
WillieRuemmele merged 2 commits into
mainfrom
sl/W-23662030
Aug 4, 2026
Merged

fix: use execFile to bypass shell command resolution-W-23662030#897
WillieRuemmele merged 2 commits into
mainfrom
sl/W-23662030

Conversation

@soridalac

Copy link
Copy Markdown
Contributor

Summary

  • Replace child_process.exec() with child_process.execFile() when invoking npm
  • execFile does not spawn a shell, preventing unintended command resolution from the working directory on Windows

Test plan

  • Existing unit tests pass
  • Verified sf version --verbose works correctly on Windows and macOS
  • Verified npm registry lookup still returns version info for user-installed plugins

@W-23662030@

@git2gus

git2gus Bot commented Aug 3, 2026

Copy link
Copy Markdown

Git2Gus App is installed but the .git2gus/config.json doesn't have right values. You should add the required configuration.

@WillieRuemmele

Copy link
Copy Markdown
Contributor

QA Notes


✅ : verified on Sorida's windows VM as working with fix
https://github.com/user-attachments/assets/f7a0987e-c572-4279-90e8-6e1daafc4d0e

@WillieRuemmele
WillieRuemmele merged commit 24a1563 into main Aug 4, 2026
9 checks passed
@WillieRuemmele
WillieRuemmele deleted the sl/W-23662030 branch August 4, 2026 19:13
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.

2 participants