terraform_docs
generated output incorrect when output.file
is configured
#697
Labels
terraform_docs
generated output incorrect when output.file
is configured
#697
Describe the bug
When
output.file
is specified,terraform-docs
directly updates this file and prints the message:README.md updated successfully
(or similar) to stdout. Because theterraform_docs
hook always redirects stdout to the file, we end up with the below:How can we reproduce it?
in
.terraform-docs.yml
:in
.pre-commit-config.yaml
:Environment information
uname -a
and/orsysteminfo | Select-String "^OS"
output:GNU bash, version 5.2.26(1)-release (x86_64-pc-msys) pre-commit 3.8.0 /usr/bin/bash: line 3: tofu: command not found Terraform v1.5.5 Python 3.10.11 Python 3.10.11 checkov 3.2.223 infracost SKIPPED terraform-docs version v0.18.0 228c7a7 windows/amd64 terragrunt SKIPPED terrascan SKIPPED TFLint version 0.52.0 + ruleset.terraform (0.9.1) + ruleset.aws (0.32.0) tfsec v1.28.10 trivy Version: 0.54.1 Check Bundle: Digest: sha256:ef2d9ad4fce0f933b20a662004d7e55bf200987c180e7f2cd531af631f408bb3 DownloadedAt: 2024-08-15 02:35:34.5007199 +0000 UTC tfupdate SKIPPED hcledit SKIPPED
.pre-commit-config.yaml
:file content
The text was updated successfully, but these errors were encountered: