hcl/cmd
Martin Atkins b82170e941 hcldec: Handle or forbid cty.DynamicPseudoType attributes in nested blocks
Our BlockList, BlockSet, and BlockMap specs all produce cty collection
values, which require all elements to have a homogeneous type. If the
nested spec contained an attribute of type cty.DynamicPseudoType, that
would create the risk of each element having a different type, which would
previously have caused decoding to panic.

Now we either handle this during decode (BlockList, BlockSet) or forbid
it outright (BlockMap) to prevent that crash. BlockMap could _potentially_
also handle this during decode, but that would require a more significant
reorganization of its implementation than I want to take on right now,
and decoding dynamically-typed values inside collections is an edge case
anyway.
2018-08-22 11:52:40 -07:00
..
hcldec hcldec: Handle or forbid cty.DynamicPseudoType attributes in nested blocks 2018-08-22 11:52:40 -07:00
hclfmt hclfmt: Have this tool call itself by the correct name 2018-01-27 11:03:05 -08:00
hclspecsuite hcl/spectests: run the spec testsuite as part of "go test" 2018-08-12 18:22:10 -07:00