move remaining helper packages to internal

This commit is contained in:
James Bardin 2021-01-20 13:18:02 -05:00
parent a7d50d3264
commit 9f2a6d33be
24 changed files with 11 additions and 20 deletions

View File

@ -6,7 +6,7 @@ import (
"testing" "testing"
"github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/backend"
"github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/internal/legacy/helper/acctest"
) )
func TestBackend_impl(t *testing.T) { func TestBackend_impl(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"testing" "testing"
"github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/backend"
"github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/internal/legacy/helper/acctest"
"github.com/hashicorp/terraform/states/remote" "github.com/hashicorp/terraform/states/remote"
"github.com/tombuildsstuff/giovanni/storage/2018-11-09/blob/blobs" "github.com/tombuildsstuff/giovanni/storage/2018-11-09/blob/blobs"
) )

View File

@ -13,7 +13,7 @@ import (
"github.com/hashicorp/errwrap" "github.com/hashicorp/errwrap"
multierror "github.com/hashicorp/go-multierror" multierror "github.com/hashicorp/go-multierror"
"github.com/hashicorp/terraform/helper/slowmessage" "github.com/hashicorp/terraform/internal/helper/slowmessage"
"github.com/hashicorp/terraform/states/statemgr" "github.com/hashicorp/terraform/states/statemgr"
"github.com/mitchellh/cli" "github.com/mitchellh/cli"
"github.com/mitchellh/colorstring" "github.com/mitchellh/colorstring"

View File

@ -7,7 +7,7 @@ import (
"github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/backend" "github.com/hashicorp/terraform/backend"
"github.com/hashicorp/terraform/helper/wrappedstreams" "github.com/hashicorp/terraform/internal/helper/wrappedstreams"
"github.com/hashicorp/terraform/repl" "github.com/hashicorp/terraform/repl"
"github.com/hashicorp/terraform/tfdiags" "github.com/hashicorp/terraform/tfdiags"

View File

@ -9,7 +9,7 @@ import (
"fmt" "fmt"
"io" "io"
"github.com/hashicorp/terraform/helper/wrappedreadline" "github.com/hashicorp/terraform/internal/helper/wrappedreadline"
"github.com/hashicorp/terraform/repl" "github.com/hashicorp/terraform/repl"
"github.com/chzyer/readline" "github.com/chzyer/readline"

View File

@ -1,9 +0,0 @@
# Legacy Helper Libraries
The packages in this directory are all legacy code. Some of them are legacy
because they are now maintained in
[the Terraform SDK](https://github.com/hashicorp/terraform-plugin-sdk),
while others are just obsolete codepaths that we intend to migrate away
from over time.
Avoid using functions from packages under `helper/` in new projects.

View File

@ -14,7 +14,7 @@ import (
"github.com/chzyer/readline" "github.com/chzyer/readline"
"github.com/hashicorp/terraform/helper/wrappedstreams" "github.com/hashicorp/terraform/internal/helper/wrappedstreams"
) )
// Override overrides the values in readline.Config that need to be // Override overrides the values in readline.Config that need to be

View File

@ -6,7 +6,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"github.com/hashicorp/terraform/helper/wrappedstreams" "github.com/hashicorp/terraform/internal/helper/wrappedstreams"
) )
// getWidth impl for Unix // getWidth impl for Unix

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"github.com/hashicorp/terraform/configs/hcl2shim" "github.com/hashicorp/terraform/configs/hcl2shim"
"github.com/hashicorp/terraform/helper/hashcode" "github.com/hashicorp/terraform/internal/legacy/helper/hashcode"
"github.com/hashicorp/terraform/internal/legacy/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )

View File

@ -12,7 +12,7 @@ import (
"testing" "testing"
"github.com/hashicorp/terraform/configs/hcl2shim" "github.com/hashicorp/terraform/configs/hcl2shim"
"github.com/hashicorp/terraform/helper/hashcode" "github.com/hashicorp/terraform/internal/legacy/helper/hashcode"
"github.com/hashicorp/terraform/internal/legacy/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
) )

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/hashicorp/terraform/helper/hashcode" "github.com/hashicorp/terraform/internal/legacy/helper/hashcode"
) )
// HashString hashes strings. If you want a Set of strings, this is the // HashString hashes strings. If you want a Set of strings, this is the

View File

@ -13,7 +13,7 @@ import (
"github.com/google/go-cmp/cmp/cmpopts" "github.com/google/go-cmp/cmp/cmpopts"
"github.com/hashicorp/terraform/configs/configschema" "github.com/hashicorp/terraform/configs/configschema"
"github.com/hashicorp/terraform/configs/hcl2shim" "github.com/hashicorp/terraform/configs/hcl2shim"
"github.com/hashicorp/terraform/helper/hashcode" "github.com/hashicorp/terraform/internal/legacy/helper/hashcode"
"github.com/hashicorp/terraform/internal/legacy/terraform" "github.com/hashicorp/terraform/internal/legacy/terraform"
"github.com/hashicorp/terraform/providers" "github.com/hashicorp/terraform/providers"
"github.com/hashicorp/terraform/tfdiags" "github.com/hashicorp/terraform/tfdiags"