Releases: gruntwork-io/pre-commit
v0.1.15
v0.1.14
Modules affected
terraform-fmt
Description
- Save the original value of
$PATH
and change it back after.
Special thanks
Special thanks to @joshschmitter for the contribution!
Related links
v0.1.13
Modules affected
go-fmt
goimports
helmlint
mdlink-check
terragrunt-hclfmt
yapf
Description
- Use
/usr/bin/env bash
in all the scripts, to improve portability.
Special thanks
Special thanks to @alias-dev for the contribution!
Related links
v0.1.12
Modules affected
terraform-fmt
terraform-validate
Description
- The
terraform-validate
hook will now (a) set theTF_IN_AUTOMATION
variable to reduce Terraform output that isn't relevant in automation, (b) print out each directory it's running in so if you hit an error, you know where to look, (c) save errors until the end, sovalidate
runs in all modules, rather than exiting on the first error. - The
terraform-fmt
hook will now (a) run with-diff -check
so the differences and affected files are printed to logs, rather than written to disk and (b) save errors until the end, sofmt
runs in all modules, rather than exiting on the first error.
Special thanks
Special thanks to @davidalger for the contributions!
Related links
v0.1.11
Modules affected
terraform-fmt
terraform-validate
tflint
Description
Use /usr/bin/env bash
instead of /bin/bash
for better portability.
Special thanks
Special thanks to @parkalla86 for their contribution!
Related links
v0.1.10
v0.1.9
v0.1.8
Modules affected
terraform-fmt
terraform-validate
terragrunt-hclfmt
Description
This fixes a regression bug where the terraform fmt
and terragrunt hclfmt
calls were not running on the right files after the improvement to support tfenv
and tgenv
.
Special Thanks
Special thanks to @oasys for their contribution!
Related links
v0.1.7
Modules affected
shellcheck
Description
You can now configure shellcheck
to enable certain checks with the --enable
CLI arg in the pre-commit
check.
Special Thanks
Special thanks to @06kellyjac for their contribution!
Related links
v0.1.6
Modules affected
terraform-fmt
terraform-validate
terragrunt-hclfmt
Description
The terraform and terragrunt related precommit hooks now run the commands in the directory of each module to respect setups that depend on tfenv
and tgenv
.
Special Thanks
Special thanks to @AlainODea for their contribution!