Terraform module boilerplate terraform-docs version mismatch
👓 What did you see?
The following error occurs when running pre-commit:
terraform-docs...........................................................Failed
- hook id: terraform-docs
- exit code: 1
Error: current version: 0.21.0, constraints: '~> 0.20.0'
✅ What did you expect to see?
terraform-docs...........................................................Passed
💻 Where does this happen?
This happens when running pre-commit locally or in CI/CD.
🔬 How do I recreate this?
pre-commit run --all
📚 Any additional information?
This is caused by a mismatch in the version use in pre-commit and the version specified in .terraform-docs.yml and was found when fixing a merge conflict in the following MR:
Edited by Roy Harrington