Skip to content

pre-commit-terraform terraform_docs changes in v1.93+ #103

@MaxymVlasov

Description

@MaxymVlasov

Just in case you plan to update to new versions of hook (1.93.0+)

You need to drop the template section to use the default one

template: |-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
{{ .Content }}
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

Or run simple bash script from p.3 in https://github.com/antonbabenko/pre-commit-terraform?tab=readme-ov-file#terraform_docs (permalink) which will replace all comment occurrences

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions