Skip to content
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 mock_client macro #4013

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Fix mock_client macro #4013

merged 2 commits into from
Feb 13, 2025

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Feb 13, 2025

Motivation and Context

There was downstream breakage (the macro was always broken, but #4001 made it more likely to happen)

Description

  • Use $crate to fix the issue when mock_client was not otherwise in scope
  • Add a test

Testing

Checklist

  • For changes to the smithy-rs codegen or runtime crates, I have created a changelog entry Markdown file in the .changelog directory, specifying "client," "server," or both in the applies_to key.
  • For changes to the AWS SDK, generated SDK code, or SDK runtime crates, I have created a changelog entry Markdown file in the .changelog directory, specifying "aws-sdk-rust" in the applies_to key.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rcoh rcoh requested a review from a team as a code owner February 13, 2025 16:52
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh enabled auto-merge February 13, 2025 19:28
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@rcoh rcoh added this pull request to the merge queue Feb 13, 2025
Merged via the queue into main with commit 77e8062 Feb 13, 2025
44 of 45 checks passed
@rcoh rcoh deleted the fix-macro branch February 13, 2025 20:30
drganjoo pushed a commit that referenced this pull request Feb 14, 2025
## Motivation and Context
There was downstream breakage (the macro was always broken, but #4001
made it more likely to happen)

## Description
- Use `$crate` to fix the issue when `mock_client` was not otherwise in
scope
- Add a test
## Testing
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->

## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [ ] For changes to the smithy-rs codegen or runtime crates, I have
created a changelog entry Markdown file in the `.changelog` directory,
specifying "client," "server," or both in the `applies_to` key.
- [ ] For changes to the AWS SDK, generated SDK code, or SDK runtime
crates, I have created a changelog entry Markdown file in the
`.changelog` directory, specifying "aws-sdk-rust" in the `applies_to`
key.

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._

---------

Co-authored-by: Landon James <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants