opentofu/config/test-fixtures/hcl2-experiment-switch/not-opted-in.tf
Martin Atkins d91327eaa0 config: allow HCL2 experiment opt-in (build-time flag to enable)
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.
2017-10-03 17:47:01 -07:00

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"
}