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

Prevent missing method MoveResourceState #223

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Mar 11, 2024

Reference: hashicorp/terraform-plugin-go#388

These changes are so the testing provider is compliant with the upcoming tfprotov5 and tfprotov6 packages which require provider implementations to fully implement function server handling (already covered) and MoveResourceState (needs covering, hence this change). Almost the entire ecosystem will not have this issue as the higher level SDKs (terraform-plugin-framework, terraform-plugin-sdk, etc.) handle these protocol operations automatically by nature of updating the dependency, but this test provider is written directly in the low level SDK, so it must implement the necessary changes itself prior to that upstream breaking change.

Reference: hashicorp/terraform-plugin-go#388

These changes are so the testing provider is compliant with the upcoming `tfprotov5` and `tfprotov6` packages which require provider implementations to fully implement function server handling (already covered) and MoveResourceState (needs covering, hence this change). Almost the entire ecosystem will not have this issue as the higher level SDKs (terraform-plugin-framework, terraform-plugin-sdk, etc.) handle these protocol operations manually, but this test provider is written directly in the low level SDK, so it must implement the necessary changes itself prior to that upstream breaking change.
Copy link
Contributor

@bendbennett bendbennett left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@bflad
Copy link
Contributor Author

bflad commented Mar 12, 2024

Thanks, @bendbennett! Will merge and re-run CI for hashicorp/terraform-plugin-go#388 to see if anything else shakes out.

@bflad bflad merged commit b7a6f3a into main Mar 12, 2024
64 checks passed
@bflad bflad deleted the bflad/protocolprovider-new-requiremens branch March 12, 2024 09:09
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 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