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(lambda-nodejs): paths with spaces break esbuild #13312

Merged
merged 3 commits into from
Feb 28, 2021

Conversation

GEMISIS
Copy link
Contributor

@GEMISIS GEMISIS commented Feb 28, 2021

Problem: Paths with spaces break ESBuild on Windows.
Solution: Add double quotes around the input paths for the ESBuild command.
Testing: Updated unit tests and confirmed in my own package this fix works.

Closes #13311


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

[Problem]
Paths with spaces break ESBuild on Windows.

[Solution]
Add double quotes around the input paths for the ESBuild command.

[Testing]
Updated unit tests and confirmed in my own package this fix works.
@gitpod-io
Copy link

gitpod-io bot commented Feb 28, 2021

@GEMISIS
Copy link
Contributor Author

GEMISIS commented Feb 28, 2021

Looks like I forgot to remove the Windows path replacement with this change too. Will add that in really fast since this won't fully fix it without that.

[Problem]
Need to revert the previous change that escaped spaces for Windows
builds, since this did not actually fix the issue.

[Solution]
Removed previous code changes.

[Testing]
Updated unit tests and manually tested on another project.
@eladb eladb changed the title fix(aws-lambda-nodejs): Paths with Spaces Break ESBuild fix(lambda-nodejs): paths with spaces break esbuild Feb 28, 2021
@mergify
Copy link
Contributor

mergify bot commented Feb 28, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 91f67ac
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Feb 28, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit f983fbb into aws:master Feb 28, 2021
@GEMISIS GEMISIS deleted the gemisis/paths-with-spaces-break-esbuild branch February 28, 2021 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws-lambda-nodejs: Paths with Spaces Break ESBuild
3 participants