Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade hcl to fix crash with optional attributes #31847

Merged
merged 1 commit into from Sep 23, 2022

Commits on Sep 23, 2022

  1. 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.
    alisdair committed Sep 23, 2022
    Copy the full SHA
    10ae444 View commit details
    Browse the repository at this point in the history