You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
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.The text was updated successfully, but these errors were encountered: