Open craigmiskell-gitlab opened 1 week ago
Thanks for reporting this, @craigmiskell-gitlab!
This seems to be a bug in the upstream library go.rpcplugin.org/rpcplugin
, but fortunately I also maintain that library so I'll see what I can do to fix it soon and then publish a new release of this provider.
It seems like a relatively straightforward bug: this statement to instantiate the service that handles Terraform's "shutdown" request is not passing the close
callback into the controllerServer
instance, and so when Terraform instructs the plugin to shutdown it tries to call a nil function pointer. :man_facepalming:
(This bug presumably also affects the apparentlymart/hcl
plugin, which uses the same upstream library.)
fortunately I also maintain that library
@apparentlymart Convenient! :)
Thanks for the quick response.
If the
assume
provider is included, any error from terraform will result in a stack trace from the assume provider;It can be reproduced with something as simple as:
where the local_file cannot create that directory (assuming you're not running as root).