Expected Behavior
after upgrading our code using github provider, from 6.9.0 to 6.11.1, terraform plan works.
Actual Behavior
terraform plan fails
Terraform Version
Terraform v1.14.4
on linux_amd64
github provider 6.11.1 (upgrading from 6.9.0)
Affected Resource(s)
Terraform Configuration Files
terraform {
required_version = ">= 1.0"
required_providers {
github = {
source = "integrations/github"
version = ">= 6.2"
}
}
}
terraform {
backend "s3" {
profile = "foo"
region = "x-1"
bucket = "foo"
encrypt = true
kms_key_id = "alias/foo"
key = "tf/foo"
use_lockfile = true
}
}
resource "github_repository_file" "app_zone" {
branch = "master"
content = "foo"
commit_message = "foo"
file = "file.yml"
overwrite_on_create = true
repository = "foo"
}
Steps to Reproduce
Using github provider in version 6.9.0, plan and apply code
Then change your provider version to 6.11.1. plan: would fail
Note: in our dev environments, we're upgrading terraform providers as they're released.
when it comes to preprod/prod, we only release every few weeks, or in this case, over a months since last release was frozen.
in dev, we didn't see this issue, moving from 6.9.0 -> 6.10.2 -> 6.11.0 -> 6.11.1. Same plan works just fine.
However jumping from 6.9 to 6.11.1: we can't run that plan
Debug Output
Panic Output
Failed to marshal plan to json: error marshaling prior state: schema version 0 for github_repository_file.app_zone in state does not match version 1 from the provider
Code of Conduct
Expected Behavior
after upgrading our code using github provider, from 6.9.0 to 6.11.1, terraform plan works.
Actual Behavior
terraform plan fails
Terraform Version
Terraform v1.14.4
on linux_amd64
github provider 6.11.1 (upgrading from 6.9.0)
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
Using github provider in version 6.9.0, plan and apply code
Then change your provider version to 6.11.1. plan: would fail
Note: in our dev environments, we're upgrading terraform providers as they're released.
when it comes to preprod/prod, we only release every few weeks, or in this case, over a months since last release was frozen.
in dev, we didn't see this issue, moving from 6.9.0 -> 6.10.2 -> 6.11.0 -> 6.11.1. Same plan works just fine.
However jumping from 6.9 to 6.11.1: we can't run that plan
Debug Output
Panic Output
Code of Conduct