Skip to content

Add terragrunt-providers-lock hook #111

@Tensho

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: 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions