-
Notifications
You must be signed in to change notification settings - Fork 4k
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(bundling): enclosing metafile & tsconfig paths with quotes #32725
base: main
Are you sure you want to change the base?
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.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request
. Additionally, if clarification is needed add Clarification Request
to a comment.
1cc72bc
to
f62e4dd
Compare
I have no idea what to do
why doesn't this text say what integration file needs to be adjusted ?!!? |
@@ -4,13 +4,13 @@ | |||
"private": true, | |||
"version": "0.0.0", | |||
"scripts": { | |||
"build": "tsc -b && node scripts/generate.js", | |||
"build": "cdk-build", |
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.
Does the cdk-build
command do the same thing? I am not familiar with it. Do you mind pointing me to where the command is implemented? 🙏
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.
@samson-keung hey - sry I'm not sure how this ended up here. I might have run some commands from the markdown files but I'm going to revert anything that is not related to adding quotes
"integ": "integ-runner --language javascript", | ||
"lint": "cdk-lint", | ||
"package": "cdk-package", | ||
"awslint": "cdk-awslint", | ||
"pkglint": "pkglint -f", | ||
"test": "jest", | ||
"test": "cdk-test", |
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.
Same as above
@@ -730,7 +729,7 @@ export function parseCommandLineArguments(args: Array<string>): any { | |||
type: 'string', | |||
alias: 'l', | |||
desc: 'The language to be used for the new project (default can be configured in ~/.cdk.json)', | |||
choices: ['csharp', 'fsharp', 'go', 'java', 'javascript', 'python', 'typescript'], | |||
choices: ['app.iml', 'csharp', 'fsharp', 'go', 'java', 'javascript', 'python', 'typescript'], |
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.
Is this intentional? Do you mind explaining what this change does?
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.
hey @samson-keung this change somehow got generated by some of the script commands in the package.json. It is unintentional.
I'll revert this and other unintended changes.
@samson-keung reverted accidental changes. I'm not sure about the artifacts for/of the integration changes and how to generate these |
Thanks for updating the PR. LGTM. I have pinged the CLI team to review as well. |
The pull request linter fails with the following errors:
PRs must pass status checks before we can provide a meaningful review. If you would like to request an exemption from the status checks or clarification on feedback, please leave a comment on this PR containing ✅ A exemption request has been requested. Please wait for a maintainer's review. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@aaarichter I see two integ tests failed. The relevant log snippet:
Are you able to run and update them? Instructions can be found in https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md#testing |
Issue # (if applicable)
No
Reason for this change
Generating the metafile in a Windows environment can fail when the path are not enclosed with quotes.
Description of changes
What code changes did you make?
Enclosed paths the bundling arguments
--metafile
and--tsconfig
Have you made any important design decisions?
No
What AWS use cases does this change enable? To enable the use cases, which AWS service features are utilized?
Allows safe usage of
metafile
andtsconfig
bundling optionsDescribe any new or updated permissions being added
<!— What new or updated IAM permissions are needed to support the changes being introduced ? -->
Description of how you validated changes
Have you added any unit tests and/or integration tests?
No, but when you have a project path with a whitespace, and use the
metafile
bundling argument, the metafile path should be passed correctly within quotes to esbuild.I updated the existing tests.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license