opentofu/internal/lang
Alisdair McDiarmid 8df065a2fe initwd: Switch from earlyconfig to configs
This is a mostly mechanical refactor with a handful of changes which
are necessary due to the semantic difference between earlyconfig and
configs.

When parsing root and descendant modules in the module installer, we now
check the core version requirements inline. If the Terraform version is
incompatible, we drop any other module loader diagnostics. This ensures
that future language additions don't clutter the output and confuse the
user.

We also add two new checks during the module load process:

* Don't try to load a module with a `nil` source address. This is a
  necessary change due to the move away from earlyconfig.

* Don't try to load a module with a blank name (i.e. `module ""`).
  Because our module loading manifest uses the stringified module path
  as its map key, this causes a collision with the root module, and a
  later panic. This is the bug which triggered this refactor in the
  first place.
2023-03-06 09:14:28 -05:00
..
blocktoattr refine the skipFixup heuristic 2021-09-22 16:29:50 -04:00
funcs Replace HTML entities in function descriptions (#32710) 2023-02-20 14:11:06 +00:00
globalref initwd: Switch from earlyconfig to configs 2023-03-06 09:14:28 -05:00
marks Fix problems caught by staticcheck v0.3.0 2022-04-04 08:12:44 -07:00
testdata/functions-test Move lang/ to internal/lang/ 2021-05-17 14:09:07 -07:00
types lang: Further limit the console-only type function 2022-02-10 06:12:58 -05:00
data_test.go addrs: Rename AbsModuleCallOutput to ModuleCallInstanceOutput 2021-07-01 08:28:02 -07:00
data.go Move lang/ to internal/lang/ 2021-05-17 14:09:07 -07:00
doc.go Move lang/ to internal/lang/ 2021-05-17 14:09:07 -07:00
eval_test.go Move lang/ to internal/lang/ 2021-05-17 14:09:07 -07:00
eval.go don't lose warnings from static validation 2022-08-09 16:15:56 -04:00
functions_descriptions_test.go Add function descriptions (#32453) 2023-01-16 10:48:31 +00:00
functions_test.go go get github.com/zclconf/go-cty-yaml@v1.0.3 2022-11-29 17:45:45 -08:00
functions.go Add function descriptions (#32453) 2023-01-16 10:48:31 +00:00
references.go Move lang/ to internal/lang/ 2021-05-17 14:09:07 -07:00
scope.go Move lang/ to internal/lang/ 2021-05-17 14:09:07 -07:00