integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
863 stars 708 forks source link

[BUG]: Trying to update provider from v5 to v6 fails with error #2266

Open nnellanspdl opened 1 month ago

nnellanspdl commented 1 month ago

Expected Behavior

Modify my code to support the new v6 syntax, and be able to run a plan and apply like normal.

Actual Behavior

I was previously using v5 of the provider. I updated my code to use v6. I also updated my code to follow the new syntax for the github_branch_protection resource. However, when I run a Plan I get the error below.

It is very similar to this issue which discusses going from v4 to v5. Looks like you had to add some sort of migration to the backend.

Can you please apply the same fix here?

Warning: Failed to decode resource from state
Error decoding
github_branch_protection
from prior state: unsupported attribute "blocks_creations"

Terraform Version

Terraform 1.5.7

Affected Resource(s)

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

No response

Panic Output

No response

Code of Conduct