From fa697a5093c898829818eaf063edd83e164e14d1 Mon Sep 17 00:00:00 2001 From: Katy Moe Date: Tue, 25 May 2021 17:08:58 +0100 Subject: [PATCH] add ProtocolVersion to ReattachConfig As of go-plugin v1.4.1, the reattach config now contains protocol version information so that protocol version can be negotiated during reattach. Please see https://github.com/hashicorp/go-plugin/pull/171. --- tfexec/options.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tfexec/options.go b/tfexec/options.go index 6d20869b..2f1a3dbf 100644 --- a/tfexec/options.go +++ b/tfexec/options.go @@ -207,10 +207,11 @@ type ReattachInfo map[string]ReattachConfig // ReattachConfig holds the information Terraform needs to be able to attach // itself to a provider process, so it can drive the process. type ReattachConfig struct { - Protocol string - Pid int - Test bool - Addr ReattachConfigAddr + Protocol string + ProtocolVersion int + Pid int + Test bool + Addr ReattachConfigAddr } // ReattachConfigAddr is a JSON-encoding friendly version of net.Addr.