Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(crwrsca): Spawn in shell on Windows #11565

Merged
merged 2 commits into from
Sep 15, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Sep 15, 2024

On Windows yarn, npm, npx and other unix-y cli programs aren't proper executables, so they can't be run as a standalone system process. So when using child_process.spawnSync() we need to pass shell: true to launch those programs inside a shell process.

(Node on the other hand is a full .exe and can be run standalone)

@Tobbe Tobbe added release:fix This PR is a fix changesets-ok Override the changesets check labels Sep 15, 2024
@Tobbe Tobbe added this to the chore milestone Sep 15, 2024
@Tobbe Tobbe merged commit aaefdb0 into redwoodjs:main Sep 15, 2024
50 checks passed
@Tobbe Tobbe deleted the tobbe-crwrsca-win32-spawn-shell branch September 15, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant