Skip to content

chore(go.mod): update github.com/hashicorp/terraform-json to v0.17.1 #9570

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

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Sep 7, 2023

As I was trying to add lifecycle validation to a template, I ran into the following issue:

terraform show state: decode terraform json: json: cannot unmarshal array into Go struct field rawState.checks of type tfjson.CheckResultStatic

Example:

data "coder_provisioner" "me" {
  lifecycle {
    precondition {
      condition     = ...
      error_message = "..."
    }
  }
}

Doesn't matter where you place the lifecycle precondition, you get similar errors elsewhere too.

This issue was fixed in https://github.com/hashicorp/terraform-json/releases/tag/v0.17.1.

@mafredri mafredri self-assigned this Sep 7, 2023
@mafredri mafredri added the hotfix label Sep 7, 2023
Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@mafredri mafredri changed the title chore(go.mod): update github.com/hashicorp/terraform-json for bugfix chore(go.mod): update github.com/hashicorp/terraform-json to v0.17.1 Sep 7, 2023
@mafredri mafredri merged commit ed7f682 into main Sep 7, 2023
@mafredri mafredri deleted the mafredri/fix-update-tfjson branch September 7, 2023 11:55
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2023
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