Move experiments/ to internal/experiments/

This is part of a general effort to move all of Terraform's non-library
package surface under internal in order to reinforce that these are for
internal use within Terraform only.

If you were previously importing packages under this prefix into an
external codebase, you could pin to an earlier release tag as an interim
solution until you've make a plan to achieve the same functionality some
other way.
This commit is contained in:
Martin Atkins 2021-05-17 11:38:39 -07:00
parent a6b8c8ba22
commit 26e5320a78
11 changed files with 6 additions and 6 deletions

View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/terraform/experiments"
"github.com/hashicorp/terraform/internal/experiments"
"github.com/hashicorp/terraform/version"
"github.com/zclconf/go-cty/cty"
)

View File

@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/terraform/experiments"
"github.com/hashicorp/terraform/internal/experiments"
)
func TestExperimentsConfig(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/experiments"
"github.com/hashicorp/terraform/internal/experiments"
)
// Module is a container for a set of configuration constructs that are

View File

@ -9,7 +9,7 @@ import (
"github.com/zclconf/go-cty/cty/function"
"github.com/zclconf/go-cty/cty/function/stdlib"
"github.com/hashicorp/terraform/experiments"
"github.com/hashicorp/terraform/internal/experiments"
"github.com/hashicorp/terraform/lang/funcs"
)

View File

@ -8,7 +8,7 @@ import (
"github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclsyntax"
"github.com/hashicorp/terraform/experiments"
"github.com/hashicorp/terraform/internal/experiments"
homedir "github.com/mitchellh/go-homedir"
"github.com/zclconf/go-cty/cty"
)

View File

@ -6,7 +6,7 @@ import (
"github.com/zclconf/go-cty/cty/function"
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/experiments"
"github.com/hashicorp/terraform/internal/experiments"
)
// Scope is the main type in this package, allowing dynamic evaluation of