[BUG]: github_repository.name
change should always be applied last to prevent errors
#2451
Open
1 task done
Labels
Status: Triage
This is being looked at and prioritized
Type: Bug
Something isn't working as documented
Expected Behavior
I had a Terraform plan with the following two resources:
github_repository
github_repository_collaborators
I modified both
github_repository.name
andgithub_repository_collaborators.team
The plan showed the following:
I applied and expected everything to work just fine.
Actual Behavior
To avoid this issue, the GitHub Terraform provider should implement the following logic:
github_repository.name
attribute.github_repository
resource last.This ensures that no resources will try to interact with a GitHub repository that no longer exists, as you've already updated all the references to the old repository name before actually renaming the repository in the final step.
Terraform Version
v1.9.8
Affected Resource(s)
github_repository
github_repository_collaborators
Terraform Configuration Files
No response
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: