Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform-docs issue in v1.93.0: invalid command code R #702

Closed
BeneHa opened this issue Aug 29, 2024 · 2 comments
Closed

terraform-docs issue in v1.93.0: invalid command code R #702

BeneHa opened this issue Aug 29, 2024 · 2 comments
Labels
area/local_installation bug Something isn't working

Comments

@BeneHa
Copy link

BeneHa commented Aug 29, 2024

Describe the bug

When I run pre-commit run -a terraform_docs with version 1.93.0 I always get the error:

❯ pre-commit run -a terraform_docs --verbose
Terraform docs...........................................................Failed
- hook id: terraform_docs
- duration: 1.1s
- exit code: 1

sed: 1: "README.md": invalid command code R

How can we reproduce it?

It happens no matter if a README.md already exists or not.

Environment information

  • OS:
    OS: MacOS
    Darwin 2BY1-1GLP3 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64

  • Tools availability and versions:

GNU bash, version 5.2.32(1)-release (aarch64-apple-darwin23.4.0)
pre-commit 3.8.0
zsh: command not found: tofu
Terraform v1.9.5
Python 3.10.11
Python 3.10.11
checkov SKIPPED
infracost SKIPPED
terraform-docs version v0.18.0 228c7a7 darwin/arm64
terragrunt SKIPPED
terrascan SKIPPED
TFLint version 0.53.0
+ ruleset.terraform (0.9.1-bundled)
tfsec SKIPPED
trivy SKIPPED
tfupdate SKIPPED
hcledit SKIPPED
  • .pre-commit-config.yaml:
file content

repos:

@BeneHa BeneHa added area/local_installation bug Something isn't working labels Aug 29, 2024
@BeneHa
Copy link
Author

BeneHa commented Aug 29, 2024

Duplicate to #703, where a fix is already suggested.

@BeneHa BeneHa closed this as completed Aug 29, 2024
@MaxymVlasov MaxymVlasov closed this as not planned Won't fix, can't repro, duplicate, stale Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/local_installation bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@MaxymVlasov @BeneHa and others