integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
887 stars 730 forks source link

[BUG]: github_emu_group_mapping - Invalid address to set: []string{"group"} in v6 #2131

Closed gm-hyp-2 closed 7 months ago

gm-hyp-2 commented 7 months ago

Expected Behavior

Until v5.45.0 github_emu_group_mapping worked just fine. When upgrading to v6.0.0.0 and later, the resource cannot be used anymore.

Actual Behavior

When trying to run terraform plan on the resource github_emu_group_mapping: https://registry.terraform.io/providers/integrations/github/latest/docs/resources/emu_group_mapping it always breaks with this reason:

Error: Invalid address to set: []string{"group"}

  with github_emu_group_mapping.pure_fb_mapping["prague-object-one"],
  on teams.tf line 44, in resource "github_emu_group_mapping" "pure_fb_mapping":
  44: resource "github_emu_group_mapping" "pure_fb_mapping" {

Terraform Version

Terraform 1.7.2 on linux_amd64 Affected versions v6.0.0.0-alpha, v6.0.0.0-beta and v6.0.0.0-rc1

Affected Resource(s)

github_emu_group_mapping

Terraform Configuration Files

No response

Steps to Reproduce

Normal tf plan will highlight the error

Debug Output

No response

Panic Output

No response

Code of Conduct

kfcampbell commented 7 months ago

This behavior should be fixed by #2133. In previous versions of the provider, we were ignoring that error. Can you please try v6.0.0-rc2 and report back to see if that fixes the error?

gm-hyp-2 commented 7 months ago

Yes, that PR seems to have resolved the issue. Thank you!

kfcampbell commented 7 months ago

Sounds good! I'm going to close this issue for now. Thank you for reporting, and please reopen if it happens again.