You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(core): fix asset bundling for nested stack with exclusive flag (#30983)
### Issue #30967Closes#30967
### Reason for this change
Incorrect bundling required check for child stack return by the function
### Description of changes
The current nested stack used parent stack's inherited function which cause incorrect assessment
More details description:
* Given you have Stage "Stage", root stack "Stack1" and child stack "Stack1Nested". the `this.node.path` used is Stage/Stack1/StackNested, however the context it validate against is only "Stage/Stack1". the current function do not validate against child stack's stack name. To fix this, i simply have the child stack call the parent stack, and if the root stack is match then all child stack will be marked as bundling required.
### Description of how you validated changes
Implemented via test driven approach, validate by test case
### Checklist
- [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
0 commit comments