github hashicorp/hcl v2.16.0

latest releases: v2.20.1, v2.20.0, v2.19.1...
16 months ago


  • ext/typeexpr: Modify the Defaults functionality to implement additional flexibility. HCL will now upcast lists and sets into tuples, and maps into objects, when applying default values if the applied defaults cause the elements within a target collection to have differing types. Previously, this would have resulted in a panic, now HCL will return a modified overall type. (#574)

    Users should return to the advice provided by v2.14.0, and apply the go-cty convert functionality after setting defaults on a given cty.Value, rather than before.

  • hclfmt: Avoid rewriting unchanged files. (#576)

  • hclsyntax: Simplify the AST for certain string expressions. (#584)

Bugs Fixed

  • hclwrite: Fix data race in formatSpaces. (#511)

Don't miss a new hcl release

NewReleases is sending notifications on new releases.