Upgrade HCL to fix optional attr default crash
Also add regression test coverage of the crash. This would occur when objects with optional attributes had default values of different type from the attribute type, and the objects were members of a collection. For example: list(object({ a = optional(set(string), []) })) If this type constraint is applied to a variable value where one object has a set(string) value for a, and the other object applies the empty tuple default, Terraform would crash.
Showing
+67 -3
... | ... | @@ -42,7 +42,7 @@ require ( |
github.com/hashicorp/go-uuid v1.0.3 | ||
github.com/hashicorp/go-version v1.6.0 | ||
github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f | ||
github.com/hashicorp/hcl/v2 v2.14.0 | ||
github.com/hashicorp/hcl/v2 v2.14.1 | ||
github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2 | ||
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c | ||
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 | ||
... | ... |