From a6b8c8ba2295f7a9d9154eee002ef5d6a25954e7 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Mon, 17 May 2021 11:01:54 -0700 Subject: [PATCH] Move moduledeps/ to internal/moduledeps/ 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. --- internal/earlyconfig/config.go | 2 +- {moduledeps => internal/moduledeps}/dependencies.go | 0 {moduledeps => internal/moduledeps}/doc.go | 0 {moduledeps => internal/moduledeps}/module.go | 0 {moduledeps => internal/moduledeps}/module_test.go | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename {moduledeps => internal/moduledeps}/dependencies.go (100%) rename {moduledeps => internal/moduledeps}/doc.go (100%) rename {moduledeps => internal/moduledeps}/module.go (100%) rename {moduledeps => internal/moduledeps}/module_test.go (100%) diff --git a/internal/earlyconfig/config.go b/internal/earlyconfig/config.go index 093493744..e3c709d32 100644 --- a/internal/earlyconfig/config.go +++ b/internal/earlyconfig/config.go @@ -8,8 +8,8 @@ import ( "github.com/hashicorp/terraform-config-inspect/tfconfig" "github.com/hashicorp/terraform/addrs" "github.com/hashicorp/terraform/internal/getproviders" + "github.com/hashicorp/terraform/internal/moduledeps" "github.com/hashicorp/terraform/internal/tfdiags" - "github.com/hashicorp/terraform/moduledeps" "github.com/hashicorp/terraform/plugin/discovery" ) diff --git a/moduledeps/dependencies.go b/internal/moduledeps/dependencies.go similarity index 100% rename from moduledeps/dependencies.go rename to internal/moduledeps/dependencies.go diff --git a/moduledeps/doc.go b/internal/moduledeps/doc.go similarity index 100% rename from moduledeps/doc.go rename to internal/moduledeps/doc.go diff --git a/moduledeps/module.go b/internal/moduledeps/module.go similarity index 100% rename from moduledeps/module.go rename to internal/moduledeps/module.go diff --git a/moduledeps/module_test.go b/internal/moduledeps/module_test.go similarity index 100% rename from moduledeps/module_test.go rename to internal/moduledeps/module_test.go