Skip to content

fix: support ephemeral resources in jsonchecks#37893

Merged
dbanck merged 2 commits intohashicorp:mainfrom
vietcgi:fix/ephemeral-jsonchecks-crash
Nov 19, 2025
Merged

fix: support ephemeral resources in jsonchecks#37893
dbanck merged 2 commits intohashicorp:mainfrom
vietcgi:fix/ephemeral-jsonchecks-crash

Conversation

@vietcgi
Copy link
Copy Markdown
Contributor

@vietcgi vietcgi commented Nov 12, 2025

Fixes #37834

The switch statement in makeStaticObjectAddr was missing a case for EphemeralResourceMode, causing a panic when running terraform show -json on plans with ephemeral resources that have preconditions/postconditions.

Added the missing case and test coverage.

@vietcgi vietcgi requested a review from a team as a code owner November 12, 2025 11:47
@vietcgi vietcgi force-pushed the fix/ephemeral-jsonchecks-crash branch from 498a49f to a68e4d4 Compare November 12, 2025 11:48
@crw crw added the bug label Nov 12, 2025
@crw
Copy link
Copy Markdown
Contributor

crw commented Nov 12, 2025

Thanks for this submission. I will raise it in triage.

Copy link
Copy Markdown
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@dbanck dbanck merged commit dc0eba3 into hashicorp:main Nov 19, 2025
13 checks passed
@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 Dec 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

terraform show -json <planfile> crashed when plan contains ephemeral block

3 participants