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

Backport of encoding of changes should always return a value into v1.10 #36213

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

github-actions[bot]
Copy link
Contributor

Backport

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

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


Terraform always attempts to generate a plan even when encountering an error, so we need to ensure that all plan elements have valid values to store and inspect later. Ensuring that Changes.Encode always returns a valid value avoids the need for nil checks elsewhere while returning an error to the user.

Fixes #36209


Overview of commits

@github-actions github-actions bot requested a review from jbardin December 13, 2024 13:49
@jbardin jbardin marked this pull request as ready for review December 13, 2024 13:50
@jbardin jbardin merged commit bc98401 into v1.10 Dec 13, 2024
5 of 6 checks passed
@jbardin jbardin deleted the backport/jbardin/changes-errors/grossly-lucky-shrimp branch December 13, 2024 13:55
Copy link
Contributor Author

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

Copy link
Contributor Author

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 Jan 13, 2025
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