Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add terragrunt-providers-lock hook #111

Open
Tensho opened this issue Feb 20, 2024 · 0 comments
Open

Add terragrunt-providers-lock hook #111

Tensho opened this issue Feb 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Tensho
Copy link

Tensho commented Feb 20, 2024

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.

@Tensho Tensho added the enhancement New feature or request label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant