Skip to content

Commit

Permalink
add ProtocolVersion to ReattachConfig
Browse files Browse the repository at this point in the history
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 hashicorp/go-plugin#171.
  • Loading branch information
kmoe committed May 25, 2021
1 parent c488758 commit fa697a5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tfexec/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fa697a5

Please sign in to comment.