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

all: Modify CallFunction implementations #226

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

bendbennett
Copy link
Contributor

@bendbennett bendbennett commented Feb 23, 2024

Reference: hashicorp/terraform-plugin-go#380
Reference: https://github.com/hashicorp/terraform-providers-devex-internal/issues/175

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.

@bendbennett bendbennett added the enhancement New feature or request label Feb 23, 2024
@bendbennett bendbennett requested a review from a team as a code owner February 23, 2024 09:53
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.

require (
github.com/google/go-cmp v0.6.0
github.com/hashicorp/terraform-plugin-go v0.21.0
github.com/hashicorp/terraform-plugin-go v0.22.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Running go get github.com/hashicorp/terraform-plugin-go results in the addition of the following entry to go.mod:

toolchain go1.21.6

Resulting in a CI failure:

go: errors parsing go.mod:
/home/runner/work/terraform-plugin-mux/terraform-plugin-mux/go.mod:[5](https://github.com/hashicorp/terraform-plugin-mux/actions/runs/8017456549/job/21901361119#step:4:6): unknown directive: toolchain

Given that our CI runs both Go 1.20 and 1.21, I removed this directive, but perhaps this should be handled differently?

@bendbennett bendbennett added this to the v0.15.0 milestone Feb 23, 2024
Copy link
Contributor

@bflad bflad 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 to me 🚀

@bendbennett bendbennett merged commit 3557b60 into main Feb 23, 2024
6 of 7 checks passed
@bendbennett bendbennett deleted the bendbennett/pdf-error-handling branch February 23, 2024 14:33
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 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants