pre-commit-terraform
pre-commit-terraform copied to clipboard
It should show the file path when something is changed or goes wrong
When something get wrong, it doesn't show the file path and it is very useful.
β― git commit -v
[WARNING] Unstaged files detected.
[INFO] Stashing unstaged files to /Users/robinho/.cache/pre-commit/patch1562252730.
Terraform fmt............................................................Failed
hookid: terraform_fmt
Files were modified by this hook. Additional output:
cluster.tf
Error: Invalid block definition
on vars.tf line 20:
(source code not available)
A block definition must have block content delimited by "{" and "}", starting
on the same line as the block header.
Oh just noticed I created a duplicate of this (#161) and a PR to fix it (#162)
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
@MaxymVlasov Let's make sure that the path is also shown for all other hooks we have (including tflint, tfsec, fmt).
Did you get anywhere with this? Appreciate the world is pretty F'd up right now. No rush at all.
It's pretty irritating getting messages like this though.
Terragrunt validate......................................................Failed
- hook id: terragrunt_validate
- files were modified by this hook
@MaxymVlasov Let's make sure that the path is also shown for all other hooks we have (including tflint, tfsec, fmt).
Any update on this?