mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-16 11:42:58 -06:00
d91327eaa0
Use the new HCL2 config loader when the opt-in comment #terraform:hcl2 is present in a .tf file. For now this is disabled for "normal" builds and enabled only if explicitly configured via a linker flag during build. This is because it's not yet in a good state to be released: the HCL2 loader produces RawConfig objects that the validator and interpolator can't yet deal with, and so using HCL2 for anything non-trivial currently causes Terraform to crash in real use.
6 lines
47 B
JSON
6 lines
47 B
JSON
{
|
|
"locals": {
|
|
"foo": "baz"
|
|
}
|
|
}
|