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

[PLACEHOLDER] Internalize or Migrate Import of github.com/hashicorp/terraform-plugin-sdk/helper/hashcode from Deprecation #13445

Closed
4 tasks done
bflad opened this issue May 20, 2020 · 2 comments · Fixed by #14593
Labels
provider Pertains to the provider itself, rather than any interaction with AWS. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Milestone

Comments

@bflad
Copy link
Contributor

bflad commented May 20, 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

Description

The functionality provided by github.com/hashicorp/terraform-plugin-sdk/helper/hashcode is deprecated in v1 without replacement as of Terraform Plugin SDK version 1.13.0. We currently have 126 uses of hashcode.String(), a simple function to convert a string into an absolute value hash acceptable for TypeSet attribute Set functions.

While it is not a major issue to keep the old v1 dependency around, it would likely be less confusing longer term to internalize it, especially since it is tiny and may no longer apply to the Terraform Plugin SDK schema handling when cty types are the norm in the future.

Definition of Done

  • Potentially: Code internalized in new aws/internal/hashcode package
  • Potentially: Update existing github.com/hashicorp/terraform-plugin-sdk/helper/hashcode imports to github.com/terraform-providers/terraform-provider-aws/aws/internal/hashcode
  • Add .hashibot.hcl configuration with new deprecated_import_commenter behavior
  • Ensure go mod tidy and go mod vendor no longer report the dependency and removes the code from the vendor/github.com/hashicorp/terraform-plugin-sdk/helper/hashcode directory
@bflad bflad added technical-debt Addresses areas of the codebase that need refactoring or redesign. provider Pertains to the provider itself, rather than any interaction with AWS. labels May 20, 2020
@bflad bflad changed the title Internalize github.com/hashicorp/terraform-plugin-sdk/helper/hashcode for Deprecation [PLACEHOLDER] Internalize or Migrate Import of github.com/hashicorp/terraform-plugin-sdk/helper/hashcode from Deprecation May 20, 2020
@bflad bflad added this to the v3.2.0 milestone Aug 12, 2020
@ghost
Copy link

ghost commented Aug 14, 2020

This has been released in version 3.2.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 Sep 12, 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 Sep 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
provider Pertains to the provider itself, rather than any interaction with AWS. technical-debt Addresses areas of the codebase that need refactoring or redesign.
Projects
None yet
1 participant