-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
chore(core): bundle assets in .cdk.staging #8601
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 am okay with adding this, but I don't like the fact that it requires some users to tweak their environments.
I am wondering if it will make more sense to mount it by default under the project directory in ./.tmp
or ./.cdk.tmp
instead of the system temp directory.
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Better, and renaming here should always work: aws-cdk/packages/@aws-cdk/core/lib/asset-staging.ts Lines 122 to 128 in b0286e9
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was previously a
Line 32 in b0286e9
Should I use this instead? |
Sure, why not |
Using `/tmp` can be problematic with some Docker setups or in CI. The directory `.cdk.staging` is already gitignored in the init templates. Closes aws#8589
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Funny... We need a |
Wouldn't it be better to bundle |
Haha. This is for when cdk.out is under /tmp ha? I am okay bundling fs-extra in core. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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.
Gotta love it that all our init templates (and therefore all user projects) already contain .cdk.staging
in their .gitignore
file! Great call.
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). |
Using
/tmp
can be problematic with some Docker setups or in CI.The directory
.cdk.staging
is already gitignored in the inittemplates.
Closes #8589
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license