Open
Description
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.
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.