Skip to content

Conversation

@btomaj
Copy link

@btomaj btomaj commented Oct 28, 2025

Which problem is this PR solving?

npm run compile fails if path contains spaces.

Short description of the changes

shell: true was removed from exec() in ./scripts/generate-protos.js

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • npm run compile runs in path with spaces.

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

Unit tests and documentation are not applicable

@btomaj btomaj requested a review from a team as a code owner October 28, 2025 03:22
Paths with spaces are incorrectly split into multiple tokens by cp.spawn()

Script should be portable across all platforms and path configurations
without `shell: true`:
1. The target binaries (pbjs, pbts) executable
2. npm automatically creates platform-specific wrappers when installing packages with bin entries
3. Node.js cp.spawn() automatically handles cross-platform compatibility
@btomaj btomaj force-pushed the fix-compile-in-path-with-spaces branch from e270c5b to 18bba3a Compare October 28, 2025 03:23
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.

1 participant