mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -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
233 B
HCL
8 lines
233 B
HCL
|
|
# The use of an equals to assign "locals" is something that would be rejected
|
|
# by the HCL2 parser (equals is reserved for attributes only) and so we can
|
|
# use it to verify that the old HCL parser was used.
|
|
locals {
|
|
foo = "bar"
|
|
}
|