fix(mixins-preview): service exports are different then in aws-cdk-lib#36201
fix(mixins-preview): service exports are different then in aws-cdk-lib#36201mergify[bot] merged 2 commits intomainfrom
aws-cdk-lib#36201Conversation
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
96abbf7 to
d1c42d4
Compare
aws-cdk-libaws-cdk-lib
|
➡️ PR build request submitted to A maintainer must now check the pipeline and add the |
c4ba55a to
86844ce
Compare
86844ce to
f8e09f3
Compare
f8e09f3 to
b4b8896
Compare
|
|
||
| // @aws-cdk/mixins-preview/aws-s3 => `export * as aws_s3 from './aws-s3';` | ||
| if (!serviceIndexExports.find(e => e.includes(moduleConfig.name))) { | ||
| serviceIndexExports.push(`export * as ${moduleConfig.submodule} from './${moduleConfig.name}';`); |
There was a problem hiding this comment.
Does this need to change as well?
| serviceIndexExports.push(`export * as ${moduleConfig.name} from './${moduleConfig.name}';`); |
There was a problem hiding this comment.
Not sure why the suggestion formatting was messed up, but here's what I am referring to specifically:
export * as ${moduleConfig.submodule} -> export * as ${moduleConfig.name}
There was a problem hiding this comment.
No. These exported symbols are using _ in aws-cdk-lib (also symbols cannot have a - in their name). It's only the export paths that use -.
|
@Mergifyio refresh |
✅ Pull request refreshed |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue
Fixes #36210
Reason for this change
@aws-cdk/mixins-previewexports services asaws_s3(note the underscore).But
aws-cdk-libexports them asaws-s3(note the dash).The intention was to align how the exports are named for ease of future migration. Better to fix this now.
Description of changes
Renaming
aws_<SERVICE>toaws-<service>and the required update ofcdk-generate-synthetic-examples.Describe any new or updated permissions being added
n/a
Description of how you validated changes
test pipeline
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license