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

[BUG]: Deleting github_repository_file resource might not remove the file #2464

Open
1 task done
frankywahl opened this issue Nov 14, 2024 · 0 comments · May be fixed by #2465
Open
1 task done

[BUG]: Deleting github_repository_file resource might not remove the file #2464

frankywahl opened this issue Nov 14, 2024 · 0 comments · May be fixed by #2465
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented

Comments

@frankywahl
Copy link
Contributor

Expected Behavior

When a successful apply of a destruction, I would not expect to see the file in the repository anymore

Actual Behavior

Even if there is an HTTP error, the terraform process exits successfully.

Terraform Version

Terraform v1.9.8
on darwin_arm64

  • provider registry.terraform.io/integrations/github v6.3.1

Affected Resource(s)

  • github_repository_file

Terraform Configuration Files

No response

Steps to Reproduce

  1. Create the resource
  2. Delete the resource after changing ownership preventing you from doing so.
resource "github_repository_file" "foo" {
  repository          = "tmp"
  branch              = "main"
  file                = ".gitignore"
  content             = "**/*.tfstate"
  commit_message      = "Managed by Terraform"
  commit_author       = "Terraform User"
  commit_email        = "[email protected]"
  overwrite_on_create = true
}

then

// resource "github_repository_file" "foo" {
//   repository          = "tmp"
//   branch              = "main"
//   file                = ".gitignore"
//   content             = "**/*.tfstate"
//   commit_message      = "Managed by Terraform"
//   commit_author       = "Terraform User"
//   commit_email        = "[email protected]"
//   overwrite_on_create = true
// }

Debug Output

No response

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@frankywahl frankywahl added Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented labels Nov 14, 2024
@frankywahl frankywahl linked a pull request Nov 14, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Bug Something isn't working as documented
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant