Skip to content

fix: CDK app fails to launch if paths contain spaces #645

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Jun 19, 2025

This PR fixes several instances where we were building a command line by joining an array of command line arguments with spaces. This would then cause problems if any of the parts of the command line contain spaces themselves, because we have lost information about the argument separators.

Instead, keep the structure information (keeping the command line in string[] form as long as possible) so that on Windows, where spaces in command lines are common, executions don't fail.

Closes #636


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@rix0rrr rix0rrr requested a review from a team June 19, 2025 09:25
@aws-cdk-automation aws-cdk-automation requested a review from a team June 19, 2025 09:25
@github-actions github-actions bot added the p2 label Jun 19, 2025
@rix0rrr rix0rrr changed the title fix: CDK app launches fail if paths contain spaces fix: CDK app fails to launch if paths contain spaces Jun 19, 2025
@github-actions github-actions bot added bug effort/small <1 day of work p1 and removed p2 labels Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws-cdk: cdk synth/deploy command fails with "C:\Program" is not recognized as an internal or external command
1 participant