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

Remove terraform-plugin-sdk/v2 Dependency #186

Open
bflad opened this issue Sep 7, 2023 · 0 comments
Open

Remove terraform-plugin-sdk/v2 Dependency #186

bflad opened this issue Sep 7, 2023 · 0 comments
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Milestone

Comments

@bflad
Copy link
Contributor

bflad commented Sep 7, 2023

terraform-plugin-testing version

1.5.1

Use cases

This issue is a placeholder for removing the github.com/hashicorp/terraform-plugin-sdk/v2 dependency. The terraform-plugin-testing Go module was created with the explicit goal of being an easy migration from using the equivalent testing functionality of the github.com/hashicorp/terraform-plugin-sdk Go module, but that meant keeping compatibility to support helper/resource package TestCase and TestStep type Providers and ProviderFactories fields which directly implement sdk/v2 types. This sometimes indirect dependency on sdk/v2 can cause issues like #185.

Proposal

Those fields, and any other potential usage of sdk/v2 types, should be deprecated in a 1.x release with the goal of removing the dependency in the 2.0.0 release of this Go module.

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant