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

missing RuntimeConfig node should behave the same as {} #1678

Merged
merged 4 commits into from
Aug 26, 2022

Conversation

weihanglo
Copy link
Contributor

Motivation and Context

Address #1676. #1635 forgot to handle a case that the whole RuntimeConfig is missing.

Description

If seeing a empty node for where RuntimeConfig should be, we just treat it as {} empty object. They now share the same behaviour that by default using runtime crates with the versions from crates.io.

Testing

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

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

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link
Collaborator

@jdisanti jdisanti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Will be interesting to see if this breaks the SDK CI or not--we probably don't explicitly set a path dependency for it.

@weihanglo weihanglo changed the title Weihanglo/runtimeconfig missing missing RuntimeConfig node should behave the same as {} Aug 26, 2022
@weihanglo weihanglo marked this pull request as ready for review August 26, 2022 16:51
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

Copy link
Contributor

@david-perez david-perez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

@weihanglo weihanglo enabled auto-merge (squash) August 26, 2022 22:39
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@weihanglo weihanglo merged commit 5abd687 into main Aug 26, 2022
@weihanglo weihanglo deleted the weihanglo/runtimeconfig-missing branch August 26, 2022 23:14
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.

3 participants