Skip to content
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

github_repository_file - Fix creation crash #732

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

magodo
Copy link
Contributor

@magodo magodo commented Mar 17, 2021

The commit is renamed to commit_sha, setting to a un-existed property will cause provider crash.

Fix #733

@jcudit jcudit added this to the v4.6.0 milestone Mar 22, 2021
Copy link
Contributor

@jcudit jcudit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks correct and tested well locally but I'm extremely 😕 about how our existing test cases missed this. I was also not able to cause a panic locally. Will go ahead with merging and releasing this, but welcome more 👀 here in case this is reproducible elsewhere.

@jcudit jcudit merged commit b877469 into integrations:master Mar 24, 2021
@magodo
Copy link
Contributor Author

magodo commented Mar 24, 2021

@jcudit I can always reproduce with the latest provider using the config in issue #733. BTW, I'm using the latest Terraform binary, not sure if that makes any difference (it might be and the local test cases are not using binary testing?)

kfcampbell pushed a commit to kfcampbell/terraform-provider-github that referenced this pull request Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

github_repository_file creation will panic
2 participants