didyoumean: move from "helper" to "internal"

This new-ish package ended up under "helper" during the 0.12 cycle for
want of some other place to put it, but in retrospect that was an odd
choice because the "helper/" tree is otherwise a bunch of legacy code from
when the SDK lived in this repository.

Here we move it over into the "internal" directory just to distance it
from the guidance of not using "helper/" packages in new projects;
didyoumean is a package we actively use as part of error message hints.
This commit is contained in:
Martin Atkins 2020-10-02 09:13:20 -07:00
parent 26f786959b
commit 593cf7b4d5
4 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
"github.com/hashicorp/hcl/v2/hclsyntax"
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/helper/didyoumean"
"github.com/hashicorp/terraform/internal/didyoumean"
"github.com/hashicorp/terraform/tfdiags"
)

View File

@ -8,7 +8,7 @@ import (
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/configs"
"github.com/hashicorp/terraform/helper/didyoumean"
"github.com/hashicorp/terraform/internal/didyoumean"
"github.com/hashicorp/terraform/tfdiags"
)