-
Notifications
You must be signed in to change notification settings - Fork 12k
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(@angular-devkit/benchmark): Allows the CLI repo to be hosted in a directory with spaces. #16073
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't remember why I added shell: true
there. If it passes, then LGTM!
Nit: the commit message scope should be |
… directory with spaces. child_process.spawn() with `shell: true` does not quote its arguments, so any data passed in must be surrounded by quotes to properly include spaces. This was making tests fail when the repository is checked out to a directory with a space in it. Easiest solution is to simply not use shell escaping which avoids the whole problem.
Updated the commit and PR name to use I didn't see that option in the list of scopes doc, is that an oversight or are there more allowed scopes than are listed there? |
I guess, it's not listed because it's a private package. |
… directory with spaces. (#16073) child_process.spawn() with `shell: true` does not quote its arguments, so any data passed in must be surrounded by quotes to properly include spaces. This was making tests fail when the repository is checked out to a directory with a space in it. Easiest solution is to simply not use shell escaping which avoids the whole problem.
…ted in a directory with spaces. (angular#16073)" This reverts commit 217eb29. Reverting as this is breaking some Windows/CI builds. See angular#16119.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
child_process.spawn()
withshell: true
does not quote its arguments, so any data passed in must be surrounded by quotes to properly include spaces (nodejs/node#5060). This was making tests fail when the repository is checked out to a directory with a space in it.Easiest solution is to simply not use shell escaping which avoids the whole problem.
Alternatively, we could attempt to wrap every argument in quotes, but that would require escaping any existing quotes, which could cause other problems. In the original PR for this file, I don't see a strong motivation for using
shell: true
, and all the tests pass without it, so I think the best solution is to just remove this flag.