-
Notifications
You must be signed in to change notification settings - Fork 33
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
tfprotov5+tfprotov6: Replace usage of diagnostics in CallFunction RPC with function error #380
Conversation
… with function error Reference: hashicorp/terraform#34603 The next version of the plugin protocol (5.5/6.5) includes support for provider defined functions. This change modifies the response returned from the CallFunction RPC, replacing diagnostics with function error.
1819845
to
ce15b8a
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.
Looks good to me 🚀 Since we know we are breaking the downstream SDKs, I wonder if our changelog here should also call out that this terraform-plugin-go release should only be updated with the upcoming minor versions of those SDKs:
- terraform-plugin-framework@v1.6.0
- terraform-plugin-mux@v0.15.0
- terraform-plugin-sdk/v2@v2.33.0
Reference: hashicorp/terraform-plugin-go#380 The next versions of the plugin protocol (5.5/6.5) include support for the CallFunction RPC and server capability. This change includes a modified implementation of the new RPC in all server implementations which accounts for returning a FunctionError rather than Diagnostics.
Reference: hashicorp/terraform-plugin-go#380 The next versions of the plugin protocol (5.5/6.5) include support for the CallFunction RPC and server capability. This change includes a modified implementation of the new RPC in all server implementations which accounts for returning a FunctionError rather than Diagnostics.
Reference: hashicorp/terraform-plugin-go#380 Reference: https://developer.hashicorp.com/terraform/plugin/framework/migrating The next versions of the plugin protocol (5.5/6.5) include support for provider defined functions. The terraform-plugin-sdk Go module will not be receiving this feature, however this Go module must be updated to handle the new RPC with errors. Provider developers can implement provider defined functions by introducing terraform-plugin-mux and using their terraform-plugin-sdk based providers in combination with a terraform-plugin-framework provider that contains the provider defined functions.
Reference: hashicorp/terraform-plugin-go#380 Reference: https://developer.hashicorp.com/terraform/plugin/framework/migrating The next versions of the plugin protocol (5.5/6.5) include support for provider defined functions. The terraform-plugin-sdk Go module will not be receiving this feature, however this Go module must be updated to handle the new RPC with errors. Provider developers can implement provider defined functions by introducing terraform-plugin-mux and using their terraform-plugin-sdk based providers in combination with a terraform-plugin-framework provider that contains the provider defined functions.
Reference: hashicorp/terraform-plugin-go#380 The next versions of the plugin protocol (5.5/6.5) include support for the CallFunction RPC and server capability. This change includes a modified implementation of the new RPC in all server implementations which accounts for returning a FunctionError rather than Diagnostics.
@bflad @bendbennett routine update from dependabot ("Bump github.com/hashicorp/terraform-plugin-go from 0.21.0 to 0.22.0") now breaks the build
|
Pending release of terraform-plugin-framework@v1.6.0 Ref: hashicorp/terraform-plugin-go#380
Pending release of terraform-plugin-framework@v1.6.0 Ref: hashicorp/terraform-plugin-go#380
Pending release of terraform-plugin-framework@v1.6.0 Ref: hashicorp/terraform-plugin-go#380
The following releases are all now available: If you are upgrading to terraform-plugin-go@v0.22.0 and you are using terraform-plugin-framework, terraform-plugin-mux and/or terraform-plugin-sdk/v2, you will also need to upgrade those Go modules. |
Pending release of terraform-plugin-framework@v1.6.0 Ref: hashicorp/terraform-plugin-go#380
Pending release of terraform-plugin-framework@v1.6.0 Ref: hashicorp/terraform-plugin-go#380
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. |
Reference: hashicorp/terraform#34603
The next version of the plugin protocol (5.5/6.5) includes support for provider defined functions. This change modifies the response returned from the CallFunction RPC, replacing diagnostics with function error.