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

Refactor: remove dependency on the v1.1.0-alpha terraform #56

Merged
merged 6 commits into from
Apr 13, 2022

Conversation

magodo
Copy link
Collaborator

@magodo magodo commented Apr 11, 2022

Remove the dependency on the v1.1.0-alpha terraform only for the terraform add command. Instead, depends on the github.com/magodo/tfadd. With this change, we are no longer bound to a specific terraform version. Any terraform version works as long as it is later than v0.12.

Correspondingly, removing the SDK schema generator and generated files, which is offloaded to the https://github.com/magodo/tfadd. But we still need to generate the resource mapping here.

Additionally, as the terraform-exec now depends on the hcl-install, we are also migrating to using it. However, instead of using the upstream one, we use a forked repo, which has an additional feature to specify version constraint when searching for any fs source.

Remove the dependency on the v1.1.0-alpha `terraform` only for the `terraform add` command. Instead, depends on the github.com/magodo/tfadd.

Correspondingly, removing the SDK schema generator and generated files, which is offloaded to the github.com/magodo/tfadd. But we still need to generate the resource mapping here.

Additionally, as the `terraform-exec` now depends on the `hcl-install`, we are also migrating to using it. However, instead of using the upstream one, we use a forked repo, which has an additional feature to specify version constraint when searching for any fs source.
@magodo magodo requested a review from ms-henglu April 11, 2022 09:15
Copy link
Member

@ms-henglu ms-henglu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@magodo magodo merged commit 8c4efb8 into Azure:main Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants