Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hashicorp/hcl
base: v2.20.1
Choose a base ref
...
head repository: hashicorp/hcl
compare: main
Choose a head ref
  • 9 commits
  • 16 files changed
  • 5 contributors

Commits on Apr 22, 2024

  1. Add additional function for parsing traversals with [*] keys (#673)

    * Add additional function for parsing traversals with [*] keys
    
    * add more context around skipped test cases
    liamcervante committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    f7cd61a View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG.md

    liamcervante committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    1c5ae8f View commit details
    Browse the repository at this point in the history

Commits on May 8, 2024

  1. github: Pin action refs to latest trusted by TSCCR (#677)

    Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
    hashicorp-tsccr[bot] and hashicorp-tsccr[bot] committed May 8, 2024
    Configuration menu
    Copy the full SHA
    4521ae9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bf54697 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2024

  1. hclsyntax: Don't panic if splat operand is unknown and marked

    We were calling .Range() on any unknown sourceVal, without first checking
    whether it was marked. That method panics if called on a marked value,
    so we need to strip that off first.
    
    While testing this I found some return paths that weren't properly
    transferring the source value's marks to the output, and so this also
    addresses those so that all return paths preserve whatever markings are
    present on the source value.
    
    In particular, if a non-list/set/tuple value gets "upgraded" into a tuple
    then we must transfer its marks onto the tuple, because the decision about
    constructing that value was based on characteristics of the source value.
    apparentlymart committed May 9, 2024
    Configuration menu
    Copy the full SHA
    bc75765 View commit details
    Browse the repository at this point in the history
  2. dynblock: Preserve marks from for_each expression into result

    Previously if the for_each expression was marked then expansion would
    fail because marked expressions are never directly iterable.
    
    Now instead we'll allow marked for_each and preserve the marks into the
    values produced by the resulting block as much as we can. This runs into
    the classic problem that HCL blocks are not values themselves and so
    cannot carry marks directly, but we can at least make sure that the values
    of any leaf arguments end up marked.
    apparentlymart committed May 9, 2024
    Configuration menu
    Copy the full SHA
    9a64c17 View commit details
    Browse the repository at this point in the history
  3. hcldec: Allow body-derived values to be marked

    Similar to the previously-added UnknownBody, the new optional interface
    MarkedBody allows hcl.Body implementations to suggest a set of marks that
    ought to be applied to any value that's generated to represent the content
    of that body.
    
    The dynblock extension then uses this to get hcldec to mark the whole
    object representing any block that was generated by a dynamic block whose
    for_each was marked, for a better representation of the fact that a
    block's existence was decided based on a marked value.
    apparentlymart committed May 9, 2024
    Configuration menu
    Copy the full SHA
    318bbfe View commit details
    Browse the repository at this point in the history
  4. Update CHANGELOG.md

    apparentlymart committed May 9, 2024
    Configuration menu
    Copy the full SHA
    212a40e View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2024

  1. github: Pin action refs to latest trusted by TSCCR (#683)

    Co-authored-by: hashicorp-tsccr[bot] <hashicorp-tsccr[bot]@users.noreply.github.com>
    hashicorp-tsccr[bot] and hashicorp-tsccr[bot] committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    f7e093a View commit details
    Browse the repository at this point in the history