-
-
Notifications
You must be signed in to change notification settings - Fork 568
Open
Labels
area/local_installationestimate/2daysNeed 2 work days to be doneNeed 2 work days to be donehelp wantedExtra attention is neededExtra attention is neededhook/terraform_docsBash hookBash hookhook/terraform_tflintBash hookBash hook
Description
Currently, terraform_docs
(and similar) hooks will use the version of terraform-docs
installed on the system.
With each major release of the terraform-docs
the output format changes and users need to regenerate the docs.
We need to be able to pin a specific version in the hook so that we have more control over README.md
.
Proposal:
- Use
args
to define a specific version of docker image - https://terraform-docs.io/user-guide/installation/#docker
Sample:
repos:
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.48.0
hooks:
- id: terraform_fmt
- id: terraform_docs
args: ['--version=0.12']
soleares, nitrocode, joshsleeper, david-heward-unmind, blimmer and 1 more
Metadata
Metadata
Assignees
Labels
area/local_installationestimate/2daysNeed 2 work days to be doneNeed 2 work days to be donehelp wantedExtra attention is neededExtra attention is neededhook/terraform_docsBash hookBash hookhook/terraform_tflintBash hookBash hook