Skip to content

Backport of update github.com/zclconf/go-cty@v1.9.1 into v1.0#29408

Merged
jbardin merged 1 commit intov1.0from
backport/jbardin/update-cty/kindly-unbiased-yak
Aug 18, 2021
Merged

Backport of update github.com/zclconf/go-cty@v1.9.1 into v1.0#29408
jbardin merged 1 commit intov1.0from
backport/jbardin/update-cty/kindly-unbiased-yak

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Aug 18, 2021

Backport

This PR is auto-generated from #29406 to be assessed for backporting due to the inclusion of the label 1.0-backport.

The below text is copied from the body of the original PR.


  • cty: Don't panic in Value.Equals if comparing complex data structures with nested marked values. Instead, Equals will aggregate all of the marks on the resulting boolean value as we typically expect for operations that derived from marked values. (#112)
  • cty: Value.AsBigFloat now properly isolates its result from the internal state of the associated value. It previously attempted to do this (so that modifying the result would not affect the supposedly-immutable cty.Number value) but ended up creating an object which still had some shared buffers. The result is now entirely separate from the internal state of the recieving value. (#114)
  • function/stdlib: The FormatList function will now return an unknown value if any of the arguments have an unknown type, because in that case it can't tell whether that value will ultimately become a string or a list of strings, and thus it can't predict how many elements the result will have. (#115)

Fixes #29339
Fixes #29301

@ghost ghost force-pushed the backport/jbardin/update-cty/kindly-unbiased-yak branch from de6ee89 to 1069348 Compare August 18, 2021 13:44
@ghost ghost requested a review from jbardin August 18, 2021 13:44
@jbardin jbardin merged commit a931900 into v1.0 Aug 18, 2021
@jbardin jbardin deleted the backport/jbardin/update-cty/kindly-unbiased-yak branch August 18, 2021 13:51
@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant