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 is broken in 1.54.0 #271

Closed
antonbabenko opened this issue Oct 27, 2021 · 1 comment · Fixed by #272
Closed

terraform_docs is broken in 1.54.0 #271

antonbabenko opened this issue Oct 27, 2021 · 1 comment · Fixed by #272
Assignees
Labels
area/local_installation bug Something isn't working estimate/2h Need 2 hours to be done hook/terraform_docs Bash hook

Comments

@antonbabenko
Copy link
Owner

Describe the bug

I tried to run pre-commit run -a in https://github.com/terraform-aws-modules/terraform-aws-s3-bucket

with this config:

repos:
  - repo: https://github.com/antonbabenko/pre-commit-terraform
    rev: v1.54.0
    hooks:
      - id: terraform_docs

Error was:

Terraform docs...........................................................Failed
- hook id: terraform_docs
- exit code: 1

/Users/Bob/.cache/pre-commit/reporiecbt_n/terraform_docs.sh: line 148: pushd: versions.tf wrappers/versions.tf wrappers/object/versions.tf examples/s3-replication/outputs.tf main.tf modules/notification/main.tf modules/notification/outputs.tf examples/complete/versions.tf examples/object/outputs.tf wrappers/main.tf wrappers/notification/variables.tf examples/s3-replication/versions.tf examples/notification/main.tf examples/complete/main.tf wrappers/object/outputs.tf examples/complete/outputs.tf modules/object/main.tf examples/notification/versions.tf wrappers/object/main.tf modules/object/versions.tf modules/object/variables.tf modules/object/outputs.tf examples/object/versions.tf variables.tf examples/object/variables.tf examples/s3-replication/iam.tf wrappers/notification/versions.tf wrappers/variables.tf examples/notification/variables.tf wrappers/outputs.tf examples/complete/variables.tf examples/notification/outputs.tf outputs.tf examples/object/main.tf examples/s3-replication/variables.tf wrappers/notification/outputs.tf modules/notification/versions.tf modules/notification/variables.tf examples/s3-replication/main.tf wrappers/notification/main.tf wrappers/object: File name too long

@antonbabenko antonbabenko added bug Something isn't working area/local_installation labels Oct 27, 2021
@MaxymVlasov MaxymVlasov added the estimate/2h Need 2 hours to be done label Oct 27, 2021
@MaxymVlasov
Copy link
Collaborator

Confirmed.

Workaround

Downgrade to 1.53.0

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 estimate/2h Need 2 hours to be done hook/terraform_docs Bash hook
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants