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.
8 lines
192 B
HCL
8 lines
192 B
HCL
#terraform:hcl2
|
|
|
|
locals {
|
|
# This direct expression is something that would be rejected by the old HCL
|
|
# parser, so we can use it as a marker that the HCL2 parser was used.
|
|
foo = 1 + 2
|
|
}
|