You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report @mallyvai. I've validated it and submitted a fix (#719). Once that is merged you would have to wait for the next release to benefit from the fix.
However, the default_branch argument to github_repository is deprecated in any case. Its replacement is the github_default_branch resource, which is not affected by the bug you reported (although I do see there have been fixes to it since 4.2.0, so I recommend you upgrade to the latest released version of the Terraform GitHub Provider). You could migrate to that straight away if you wish.
Description of bug
Whenever we try and modify the default_branch using the github-tf provider, it doesn't actually perform the update and we have to go to the UI.
It looks like there's a similar issue reported (and troubleshooted) here: google/go-github#1578
Terraform Version
apt-get install -y terraform=0.14.4
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Please provide a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
Panic Output
If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the
crash.log
.Expected Behavior
What should have happened?
Actual Behavior
What actually happened?
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
master
. Add some commits to it .default_branch
tomain
.3.
terraform plan
and thenterraform apply
. This should succeed.default_branch
is stillmaster
Important Factoids
Standard Github Enterprise account. Terraform is running in usual combination of EC2 + DynamoDB + S3
The text was updated successfully, but these errors were encountered: