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

'make gen' fails #11637

Closed
ewbankkit opened this issue Jan 17, 2020 · 3 comments · Fixed by #11638
Closed

'make gen' fails #11637

ewbankkit opened this issue Jan 17, 2020 · 3 comments · Fixed by #11638
Labels
bug Addresses a defect in current functionality. provider Pertains to the provider itself, rather than any interaction with AWS.
Milestone

Comments

@ewbankkit
Copy link
Contributor

ewbankkit commented Jan 17, 2020

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
$ make gen
rm -f aws/internal/keyvaluetags/*_gen.go
go generate ./...
# github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags
./iam_tags.go:34:37: updatedTags.IgnoreAws().IamTags undefined (type KeyValueTags has no field or method IamTags)
./iam_tags.go:69:37: updatedTags.IgnoreAws().IamTags undefined (type KeyValueTags has no field or method IamTags)
aws/internal/keyvaluetags/key_value_tags.go:1: running "go": exit status 2
GNUmakefile:13: recipe for target 'gen' failed
make: *** [gen] Error 1

This is caused by me adding iam_tags.go, which contains hand written custom tag functionality, in #11598. As this code references generated methods it fails to compile during the generate phase.

@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 17, 2020
@ewbankkit
Copy link
Contributor Author

ewbankkit commented Jan 17, 2020

We need to move the custom functionality to its own package -
github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags/custom?

@bflad bflad added bug Addresses a defect in current functionality. provider Pertains to the provider itself, rather than any interaction with AWS. and removed needs-triage Waiting for first response or review from a maintainer. labels Feb 5, 2020
@bflad bflad added this to the v2.48.0 milestone Feb 5, 2020
@ghost
Copy link

ghost commented Feb 7, 2020

This has been released in version 2.48.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented Mar 27, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. provider Pertains to the provider itself, rather than any interaction with AWS.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants