-
Notifications
You must be signed in to change notification settings - Fork 8.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
awssdkpatch: Fix aliased import substitutions #37239
awssdkpatch: Fix aliased import substitutions #37239
Conversation
Community NoteVoting for Prioritization
For Submitters
|
dlm imports its service package with an alias. The current patch template didn't cope with templated imports. gopatch [supports](https://github.com/uber-go/gopatch/blob/main/docs/PatchesInDepth.md#changing-any-import) changing both named and unnamed imports so this converts over to using that generic solution. On top of that, fix up the other patches so that they match aliased names rather than fully-qualified names.
1c47d19
to
bca429e
Compare
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.
Overall LGTM - just a couple suggestions on naming of metavariables and extra condition checks in the patch template.
Co-authored-by: Jared Baker <jar-b@users.noreply.github.com>
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.
LGTM 🎉
Thanks for your contribution, @mattburgess ! 👍 |
This functionality has been released in v5.49.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
dms
imports its service package with an alias. The current patch template didn't cope with templated imports. gopatch supports changing both named and unnamed imports so this converts over to using that generic solution.On top of that, fix up the other patches so that they match aliased names rather than fully-qualified names.
Description
Relations
Relates #32976