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

chore: allow unknown traits when generating sdk #5660

Closed
wants to merge 1 commit into from

Conversation

milesziemer
Copy link
Contributor

@milesziemer milesziemer commented Jan 9, 2024

Issue

Issue number, if available, prefixed with "#"

N/A

Description

What does this implement/fix? Explain your changes.

Updates Smithy Gradle Plugin config to allow unkown traits, stopping builds from failing if there are traits in models which haven't been added as a dependency in the code generator. Usually new traits are added to existing packages, but if/when a trait is added in a new package, we will have to update the dependencies of the code generator, even if the code generator isn't actually using the trait yet.

Testing

How was this change tested?

Added a non-existent trait to a model in codegen/sdk-codegen/aws-models and generated the client successfully.

Additional context

Add any other context about the PR here.

Checklist

  • If you wrote E2E tests, are they resilient to concurrent I/O?
  • If adding new public functions, did you add the @public tag and enable doc generation on the package?

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

@milesziemer milesziemer requested a review from a team as a code owner January 9, 2024 22:34
Updates Smithy Gradle Plugin config to allow unkown traits, stopping
builds from failing if there are traits in models which haven't been
added as a dependency in the code generator. Usually new traits are
added to existing packages, but if/when a trait is added in a new
package, we will have to update the dependencies of the code generator,
even if the code generator isn't actually using the trait yet.
@milesziemer milesziemer force-pushed the allow-unknown-traits branch from 46d6f58 to c7fc837 Compare January 9, 2024 23:13
@milesziemer
Copy link
Contributor Author

Closing in favor of #5664

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants