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

Fixed typing of check results in statefiles #101

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

Yantrio
Copy link
Contributor

@Yantrio Yantrio commented Aug 30, 2023

This PR also improves on the has_checks test by using some real data, ensuring that both the statefile and the plan files can be parsed correctly.

This PR also improves on the has_checks test by using some real data, ensuring that both the statefile and the plan files can be parsed correctly.
@Yantrio Yantrio requested review from a team as code owners August 30, 2023 10:53
@hashicorp-cla
Copy link

hashicorp-cla commented Aug 30, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@liamcervante liamcervante left a comment

Choose a reason for hiding this comment

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

Hi @Yantrio, this looks good to me! Thanks!

@liamcervante liamcervante merged commit e8dddea into hashicorp:main Aug 30, 2023
7 checks passed
@Yantrio Yantrio deleted the checks-typing-fix branch August 30, 2023 12:17
AislingHPE added a commit to AislingHPE/tofu-exec that referenced this pull request May 30, 2024
There is an issue in v0.17.1 of terrraform-json where state files can't
be read when there are checks present, since checks are an arrray, and
the tool tries to marshal them to a strruct. This causes an issue with
the ShowStateFile function.

Bumping terraform-json to the latest version and running `go mod tidy`
to pull in its dependencies.

Original issue in tfexec:
hashicorp#415

Line which doesn't work currently in this repo:
https://github.com/opentofu/tofu-exec/blob/e5963f176ec5f21e5d059428189439290554c25c/tfexec/show.go#L95-L99

Patch to terraform-json:
hashicorp/terraform-json#101

Changlog from v0.17.1 to v0.22.1:
https://github.com/hashicorp/terraform-json/releases
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.

3 participants