From 6ea3725238d32bf5b333585016cd64263e283265 Mon Sep 17 00:00:00 2001 From: Umbert Pensato Date: Mon, 26 May 2025 14:18:09 +0200 Subject: [PATCH 1/2] fix(terragrunt): change terragrunt format for the non-deprecated command hclfmt -> hcl format --- hooks/terragrunt-hclfmt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/terragrunt-hclfmt.sh b/hooks/terragrunt-hclfmt.sh index cee95335..a7b1a9e8 100755 --- a/hooks/terragrunt-hclfmt.sh +++ b/hooks/terragrunt-hclfmt.sh @@ -9,6 +9,6 @@ export PATH=$PATH:/usr/local/bin for file in "$@"; do pushd "$(dirname "$file")" >/dev/null - terragrunt hclfmt --file "$(basename "$file")" + terragrunt hcl format --file "$(basename "$file")" popd >/dev/null done From ee66393a9c4a5b866eadeea08cd51509d48847e7 Mon Sep 17 00:00:00 2001 From: Umbert Pensato Date: Mon, 26 May 2025 14:33:56 +0200 Subject: [PATCH 2/2] docs: update docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b6725dea..30c0849a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ supported hooks are: * **terraform-fmt**: Automatically run `terraform fmt` on all Terraform code (`*.tf` files). * **terraform-validate**: Automatically run `terraform validate` on all Terraform code (`*.tf` files). * **packer-validate**: Automatically run `packer validate` on all Packer code (`*.pkr.*` files). -* **terragrunt-hclfmt**: Automatically run `terragrunt hclfmt` on all Terragrunt configurations. +* **terragrunt-hclfmt**: Automatically run `terragrunt hcl format` on all Terragrunt configurations. * **tflint**: Automatically run [`tflint`](https://github.com/terraform-linters/tflint) on all OpenTofu/Terraform code (`*.tf`, `*.tofu` files). * **shellcheck**: Run [`shellcheck`](https://www.shellcheck.net/) to lint files that contain a bash [shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)). * **gofmt**: Automatically run `gofmt` on all Golang code (`*.go` files).