-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(core): correctly skip asset bundling #21962
Conversation
4552b57
to
ae88cc5
Compare
this.stackName, | ||
pattern.replace('/', '-'), | ||
)); | ||
return bundlingStacks.some(pattern => minimatch(this.node.path, pattern)); |
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 would like to add a link here to something that documents cxapi.BUNDLING_STACKS
.
ae88cc5
to
3200d98
Compare
Hey @plumdog thanks for looking into this! Unfortunately your PR is basically a revert of this revert: #21174 PS: I have little context on the issue, just remembered the revert. cc @kaizencc @corymhall |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@mrgrain aha. My remaining question is, I think "what is I know it was a revert, but I'd be curious to see the broken behaviour that #21174 fixed - in other words, what would a failing for that PR look like? |
Fixes #21925.
cxapi.BUNDLING_STACKS
refers to stacks by their logical path within the app, so usethis.node.path
when comparing.Previous behaviour only worked because:
id
==path
${stage}-${id}
==path.replace('/', '-')
I've added tests that fail when:
.replace('/', '-')
doesn't fudge the path into the nameQuestion: while I have verified the above regarding
cxapi.BUNDLING_STACKS
experimentally, I haven't found anything that documents this.All Submissions:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license