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

update go-cty@v1.15.0 #35501

Merged
merged 1 commit into from
Jul 24, 2024
Merged

update go-cty@v1.15.0 #35501

merged 1 commit into from
Jul 24, 2024

Conversation

jbardin
Copy link
Member

@jbardin jbardin commented Jul 24, 2024

Update go-cty to v1.15.0

  • function/stdlib: The element function now accepts negative indices, extending the illusion of an infinitely-long list into the negative direction too.
  • cty: The various "transform" functions were previously incorrectly propagating marks from a parent object down to attribute values when calling the caller-provided transform functions. The marks will now no longer be propagated downwards, which is consistent with the treatment of collection and tuple elements. If your transform function needs to take into account context about marks of upstream containers then you can maintain a stack of active marks in your Transformer implementation, pushing in Enter and popping in Exit. (#185)

Closes #35424
Closes #15582

@apparentlymart
Copy link
Contributor

The first change mentioned in the changelog would close #15582, I think.

@jbardin
Copy link
Member Author

jbardin commented Jul 24, 2024

Ah, there its is! thanks!

@jbardin jbardin merged commit c4687b9 into main Jul 24, 2024
6 checks passed
@jbardin jbardin deleted the jbardin/update-go-cty branch July 24, 2024 20:38
Copy link

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

Copy link

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 Aug 24, 2024
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants