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

Strip optional metadata from empty default collections #568

Merged
merged 2 commits into from Nov 9, 2022

Conversation

liamcervante
Copy link
Member

@liamcervante liamcervante commented Nov 4, 2022

Previously, in the example test cases the empty default collection would be returned with the optional metadata embedded even though the default value should be a concrete value. This was fixed in the latest release of go-cty, and so was fixed here by pulling the latest go-cty.

Proposed Changelog Update

Bugs Fixed

  • ext/typeexpr: Ensure default values do not have optional metadata attached. This prevents crashes when default values are inserted into concrete go-cty values that have also been stripped of their optional metadata.

@liamcervante liamcervante marked this pull request as ready for review November 9, 2022 09:22
@liamcervante liamcervante changed the title Add test cases that verify the downstream go-cty fix has worked Strip optional metadata from empty default collections Nov 9, 2022
@liamcervante liamcervante merged commit bcff50c into hashicorp:main Nov 9, 2022
@liamcervante liamcervante deleted the terraform/32152 branch November 9, 2022 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants