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(pacmak): fails when package path contains space #2758

Merged
merged 2 commits into from
May 27, 2021

Conversation

RomainMuller
Copy link
Contributor

Quoting the package path in the sub-shell command so that spaces are not
incorrectly interpreted as argument delimiters.

Fixes #2748


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

Quoting the package path in the sub-shell command so that spaces are not
incorrectly interpreted as argument delimiters.

Fixes #2748
@RomainMuller RomainMuller requested a review from a team March 30, 2021 11:07
@RomainMuller RomainMuller self-assigned this Mar 30, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 30, 2021
Copy link
Contributor

@rix0rrr rix0rrr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix should be made in the shell command, treating the string[] as expected.

That'll prevent us from having to fix the same issue in every single place.

@RomainMuller
Copy link
Contributor Author

@rix0rrr -- how do you propose working with already quoted arguments then? Double-quoting those may produce incorrect results, too...

@ArmaanT
Copy link

ArmaanT commented Apr 1, 2021

For what it's worth, this fix was the only change I needed in order to get jsii working correctly for a JSII project generated by projen.

@RomainMuller RomainMuller merged commit 0fbba6b into main May 27, 2021
@RomainMuller RomainMuller deleted the rmuller/quote-directory branch May 27, 2021 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running jsii-pacmak fails when on a path with a space
3 participants