opentofu/config/hcl2shim
Martin Atkins 299fe25a04 hcl2shim: Handle unknown values when shimming to/from flatmap
Previously unknown values were round-tripping through flatmap and coming
out as known strings containing the UnknownVariableValue. (The classic bug
that, ironically, was one of the big reasons to write cty!)

Now we properly handle unknown values in both directions: going in to
flatmap we write UnknownVariableValue at the appropriate key (as the count
for sequences or maps) and then coming out of flatmap we turn
UnknownVariableValue back into a cty unknown value of the requested type.
2018-10-16 18:48:28 -07:00
..
flatmap_test.go hcl2shim: Handle unknown values when shimming to/from flatmap 2018-10-16 18:48:28 -07:00
flatmap.go hcl2shim: Handle unknown values when shimming to/from flatmap 2018-10-16 18:48:28 -07:00
single_attr_body.go config/hcl2shim: make some of the HCL2 shim functions public 2017-10-16 17:54:02 -07:00
values_test.go config/hcl2shim: make some of the HCL2 shim functions public 2017-10-16 17:54:02 -07:00
values.go config/hcl2shim: don't put nils in ConfigValue maps 2018-10-16 18:24:10 -07:00