• Alisdair McDiarmid's avatar
    Upgrade HCL to fix optional attr default crash · 10ae444e
    Alisdair McDiarmid authored
    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.
    10ae444e
Analyzing file…