You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the function signature states it wants a bi-directional channel, it is unnecessarily difficult to pass the channels from the go-plugin fields through the function, which winds up in the same type anyways.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
terraform-plugin-go version
Use cases
Downstream SDK/server implementations may already have an existing
go-plugin
ServeTestConfig
, whose fields include channel directionality in the type:The current
tf5server
andtf6server
implementations have a function signature that does not include the channel directionality:Since the function signature states it wants a bi-directional channel, it is unnecessarily difficult to pass the channels from the go-plugin fields through the function, which winds up in the same type anyways.
Attempted solutions
Workaround:
Proposal
Add
<-
to function signature.Then the implementation becomes passthrough:
References
The text was updated successfully, but these errors were encountered: