terraform/lang
Martin Atkins ecc42b838c lang/funcs: Fix crash and improve precision of keys/values functions
The "values" function wasn't producing consistently-ordered keys in its
result, leading to crashes. This fixes #19204.

While working on these functions anyway, this also improves slightly their
precision when working with object types, where we can produce a more
complete result for unknown values because the attribute names are part
of the type. We can also produce results for known maps that have unknown
elements; these unknowns will also appear in the values(...) result,
allowing them to propagate through expressions.

Finally, this adds a few more test cases to try different permutations
of empty and unknown values.
2018-11-06 08:33:49 -08:00
..
funcs lang/funcs: Fix crash and improve precision of keys/values functions 2018-11-06 08:33:49 -08:00
data.go terraform: ugly huge change to weave in new HCL2-oriented types 2018-10-16 18:46:46 -07:00
data_test.go terraform: ugly huge change to weave in new HCL2-oriented types 2018-10-16 18:46:46 -07:00
doc.go lang: new package for the runtime parts of the config language 2018-10-16 18:44:26 -07:00
eval.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
eval_test.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
functions.go lang: Add fileexists function 2018-10-17 10:18:07 +01:00
references.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
scope.go terraform: ugly huge change to weave in new HCL2-oriented types 2018-10-16 18:46:46 -07:00