-
Notifications
You must be signed in to change notification settings - Fork 155
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
feat: Change terraform-format
to support both Terraform and OpenTofu packages
#419
base: master
Are you sure you want to change the base?
Conversation
7b901bb
to
59000fb
Compare
0978932
to
50e6472
Compare
50e6472
to
b112f79
Compare
terraform-fmt = pkgs.writeScriptBin "terraform-fmt" '' | ||
#!/usr/bin/env bash | ||
|
||
opentofu_or_terraform() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@totoroot Based on our discussion, I made a few changes to the existing terraform-format
. For the time being, I feel it would be easier to alter the existing hook to work with both OpenTofu and Terraform. End users can choose whether to use OpenTofu (the default) or alter the package
to Terraform, as shown in this example:
https://github.com/sestrella/test-pre-commit-hooks.nix/blob/main/devenv.nix
I'm planning to update the PR title and the issue accordingly.
terraform-format
to support both Terraform and OpenTofu packages
Fixes #418