terrafmt
terrafmt copied to clipboard
Format terraform blocks embedded in files
This PR integrated `hclgrep` into the `terraform`. ## Example ```shell terraform-provider-azurerm on revert_case_sensitivity_containers via 🐹 v1.17.7 took 3s 💢 terrafmt grep -p "*_test.go" . -- -H -x 'resource azurerm_servicebus_namespace...
fix: (.gitignore is only a bandaid solution as the files are still there)
terrafmt does not extract terraform files and does not do inline code formatting from the README.md file if, we start the Three backquotes after 4 spaces in the README.md file....
When a configuration with format verbs has two quoted values on the same line, only the first is replaced. For example, in https://github.com/hashicorp/terraform-provider-aws/blob/38319aa13aea65d3e946450c1f881d8fef12e734/aws/resource_aws_ecs_capacity_provider_test.go#L438-L448 ```terraform resource "aws_ecs_capacity_provider" "test" { name =...
## Description When using `terrafmt diff -f` with the following configuration snippet: ```go return fmt.Sprintf(` data "aws_caller_identity" "current" {} resource "aws_signer_signing_profile" "test" { platform_id = "AWSLambda-SHA384-ECDSA" name = replace(%[1]q, "-",...
Terraform 0.13 has changed how it handles the final newline in `0.12upgrade`, causing test failures.
Hi This package is available in goproxy https://pkg.go.dev/github.com/katbyte/[email protected] in version v0.5.5 but for some reasons tag it's missing from github. This leads to the situation where people with env `GOPROXY=direct`...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.17.0 to 0.31.0. Commits b4f1988 ssh: make the public key cache a 1-entry FIFO cache 7042ebc openpgp/clearsign: just use rand.Reader in tests 3e90321 go.mod: update golang.org/x dependencies...