-
Notifications
You must be signed in to change notification settings - Fork 763
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
Change to default branch in v3.1.0 breaks refresh of existing resources #564
Comments
👋 Hey Friends, this issue has been automatically marked as |
@jcudit has there been any progress on this issue? It's currently affecting our usage of this resource at my company. |
Jeremy does not work at GitHub anymore unfortunately! I miss having him around. To the best of my knowledge, there's been no progress on this issue, though ideas and PRs are welcome! |
This also seems to happen when you rename the repository name. |
👋 Hey Friends, this issue has been automatically marked as |
v3.1.0 included https://github.com/terraform-providers/terraform-provider-github/pull/562 which adjusted the default branch on resources from
master
tomain
. This breaks the refresh of existing state on resources likegithub_repository_file
where thebranch
was not explicitly set as these are now being refreshed against the incorrect branch. May be more resources affected?Expected Behavior
Breaking changes should not be introduced by minor version increments. Existing resources should not be replaced.
Actual Behavior
Files provisioned by the
github_repository_file
resources are being destroyed and then fail to be recreated as the new "default" branch does not exist.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
github_repository_file
withbranch
not set explicitly using v3.0.0References
The text was updated successfully, but these errors were encountered: