Open Tensho opened 6 months ago
Describe the solution you'd like
It would be nice to have a hook which locks versions in .terraform.lock.hcl file automatically. For example, terragrunt-providers-lock hook which runs terragrunt providers lock command for specified platforms under the hood.
.terraform.lock.hcl
terragrunt-providers-lock
terragrunt providers lock
Describe alternatives you've considered
Write a local hook, something like:
- repo: local hooks: - id: terragrunt-providers-lock name: Terragrunt providers lock entry: terragrunt providers lock -platform=darwin_amd64 -platform=darwin_arm64 -platform=linux_amd64 language: script files: '\.hcl$'
Additional context
A similar terraform_providers_lock hook for Terraform is provided by pre-commit-terraform project.
terraform_providers_lock
Describe the solution you'd like
It would be nice to have a hook which locks versions in
.terraform.lock.hcl
file automatically. For example,terragrunt-providers-lock
hook which runsterragrunt providers lock
command for specified platforms under the hood.Describe alternatives you've considered
Write a local hook, something like:
Additional context
A similar
terraform_providers_lock
hook for Terraform is provided by pre-commit-terraform project.