diff --git a/modules/plain-repo/files/.terraform-docs.yml b/modules/plain-repo/files/.terraform-docs.yml index 85739c6..13e6d33 100755 --- a/modules/plain-repo/files/.terraform-docs.yml +++ b/modules/plain-repo/files/.terraform-docs.yml @@ -54,7 +54,12 @@ settings: hide-empty: false html: true indent: 2 - lockfile: true + # Take provider versions from required_providers, not from .terraform.lock.hcl. + # Module repos do not commit a lock file, so reading one means the README's + # Providers table records whatever versions a developer's last `terraform init` + # happened to resolve - meaningless to consumers, and it silently replaces the + # constraints the module actually declares. + lockfile: false read-comments: true required: true sensitive: true