update plugin to use legacy types

This commit is contained in:
James Bardin 2020-11-18 10:05:54 -05:00
parent 4eb5b7558b
commit aa42841dd8
10 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
package plugin package plugin
import ( import (
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func testProviderFixed(p terraform.ResourceProvider) ProviderFunc { func testProviderFixed(p terraform.ResourceProvider) ProviderFunc {

View File

@ -4,7 +4,7 @@ import (
"net/rpc" "net/rpc"
plugin "github.com/hashicorp/go-plugin" plugin "github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
// ResourceProviderPlugin is the plugin.Plugin implementation. // ResourceProviderPlugin is the plugin.Plugin implementation.

View File

@ -6,7 +6,7 @@ import (
"testing" "testing"
"github.com/hashicorp/go-plugin" "github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func TestResourceProvider_impl(t *testing.T) { func TestResourceProvider_impl(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"github.com/hashicorp/go-plugin" "github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform/configs/configschema" "github.com/hashicorp/terraform/configs/configschema"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
// ResourceProvisionerPlugin is the plugin.Plugin implementation. // ResourceProvisionerPlugin is the plugin.Plugin implementation.

View File

@ -6,7 +6,7 @@ import (
"testing" "testing"
"github.com/hashicorp/go-plugin" "github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func TestResourceProvisioner_impl(t *testing.T) { func TestResourceProvisioner_impl(t *testing.T) {

View File

@ -2,9 +2,9 @@ package plugin
import ( import (
"github.com/hashicorp/go-plugin" "github.com/hashicorp/go-plugin"
grpcplugin "github.com/hashicorp/terraform/helper/plugin" grpcplugin "github.com/hashicorp/terraform/internal/legacy/helper/plugin"
"github.com/hashicorp/terraform/internal/legacy/terraform"
proto "github.com/hashicorp/terraform/internal/tfplugin5" proto "github.com/hashicorp/terraform/internal/tfplugin5"
"github.com/hashicorp/terraform/terraform"
) )
const ( const (

View File

@ -5,7 +5,7 @@ import (
"net/rpc" "net/rpc"
"github.com/hashicorp/go-plugin" "github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
// UIInput is an implementation of terraform.UIInput that communicates // UIInput is an implementation of terraform.UIInput that communicates

View File

@ -6,7 +6,7 @@ import (
"testing" "testing"
"github.com/hashicorp/go-plugin" "github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func TestUIInput_impl(t *testing.T) { func TestUIInput_impl(t *testing.T) {

View File

@ -3,7 +3,7 @@ package plugin
import ( import (
"net/rpc" "net/rpc"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
// UIOutput is an implementatin of terraform.UIOutput that communicates // UIOutput is an implementatin of terraform.UIOutput that communicates

View File

@ -4,7 +4,7 @@ import (
"testing" "testing"
"github.com/hashicorp/go-plugin" "github.com/hashicorp/go-plugin"
"github.com/hashicorp/terraform/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )
func TestUIOutput_impl(t *testing.T) { func TestUIOutput_impl(t *testing.T) {