Skip to content

Add terragrunt-providers-lock hook #111

Description

@Tensho

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: localhooks:
- id: terragrunt-providers-lockname: Terragrunt providers lockentry: terragrunt providers lock -platform=darwin_amd64 -platform=darwin_arm64 -platform=linux_amd64language: scriptfiles: '\.hcl$'

Additional context

A similar terraform_providers_lock hook for Terraform is provided by pre-commit-terraform project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions