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

Change terraform-format to support both Terraform and OpenTofu packages #418

Open
sestrella opened this issue Mar 27, 2024 · 1 comment · May be fixed by #419
Open

Change terraform-format to support both Terraform and OpenTofu packages #418

sestrella opened this issue Mar 27, 2024 · 1 comment · May be fixed by #419

Comments

@sestrella
Copy link
Contributor

sestrella commented Mar 27, 2024

Right now, the terraform-fmt hook uses OpenTofu under the hood, which is a little misleading given the hook name. On the other hand, the use of OpenTofu over Terraform may be something to leave to the end user to decide. In that regard, I suggest creating two separate hooks, one that uses Terraform and another that uses OpenTofu.

@sestrella sestrella changed the title Create different hooks for Terraform and OpenTofu format Change terraform-format to support both Terraform and OpenTofu packages Apr 5, 2024
@sestrella
Copy link
Contributor Author

sestrella commented Apr 5, 2024

The initial proposal was to create separate hooks, but after @totoroot comment, I realized it would be better to modify the existing hook to support both Terraform and OpenTofu, allowing end users to make the final decision while also avoiding inserting weird hacks into the existing GH actions workflow to make it work with unfree packages, which was required to make it work with Terraform due to the most recent license change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant