Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Subcommand for migration from SDKv1 -> SDKv2 #38

Closed
kmoe opened this issue Mar 19, 2020 · 2 comments
Closed

Subcommand for migration from SDKv1 -> SDKv2 #38

kmoe opened this issue Mar 19, 2020 · 2 comments
Assignees

Comments

@kmoe
Copy link
Member

kmoe commented Mar 19, 2020

Proposed name: v2upgrade

This will need to:

@kmoe kmoe self-assigned this Mar 19, 2020
@kmoe
Copy link
Member Author

kmoe commented May 1, 2020

Unfortunately the "search and replace" feature for replacing terraform.ResourceProvider with *schema.Provider is not as simple as it seems, as providers often use type assertions of the following form:

testAccProvider = Provider().(*schema.Provider)

(from https://github.com/hashicorp/terraform-provider-random/blob/386ee7e787caf841ad551b4f46d2819b6caa6f73/random/provider_test.go#L16)

@kmoe
Copy link
Member Author

kmoe commented Aug 7, 2020

Sufficiently done.

@kmoe kmoe closed this as completed Aug 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant