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
precommit: terraform fmt makes changes on disk (#1)
### Issues Addressed
Most of our pre-commit checks just make the changes that are rote, obvious
changes. Not `terraform fmt`! Instead, it just reports the error and exits,
meaning you have to fix the issue manually. And there's no reason for it, it's
just someone decided to do it that way and the maintainers won't switch it
back. Comment thread: gruntwork-io#48
### Summary of Changes
I patched precommit to use the expected behavior. I included a shell
file to add the patch so it's easy to stay up-to-date with upstream.
### Test Plan
- Tested that precommit now automatically updates terraform files when
using this branch for precommit.
0 commit comments