Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: antonbabenko/pre-commit-terraform
base: v1.88.2
Choose a base ref
...
head repository: antonbabenko/pre-commit-terraform
compare: v1.88.3
Choose a head ref
  • 3 commits
  • 3 files changed
  • 3 contributors

Commits on Mar 14, 2024

  1. docs: Clarify deps (#647)

    ---------
    
    Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
    MaxymVlasov and yermulnik committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    495357e View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. fix(terraform_providers_lock): Require terraform init (and `terra…

    …form_validate` hook) run when only lockfile changed (#649)
    
    ### Description of your changes
    
    ![image](https://github.com/antonbabenko/pre-commit-terraform/assets/11096782/50022937-7360-4c3b-8919-a488730c493a)
    
    When the terraform root module contains any child module it requires `terraform init` to run to be able to successfully run the provider lock operation.
    
    Previously, `terraform init` was in `terraform_providers_lock` hook too, but moved out to be only in `terraform_validate`, because there was little sense in trying to lock anything that was code invalid. 
    If we return `terraform init` back to  `terraform_providers_lock` - major changes in providers that remove resources etc. can be successfully written to lockfile without any checks, as such checks done in `terraform_validate`
    
    ## Workaround till the release of that stuff
    
    Add `files: (\.tf|\.tfvars|\.terraform\.lock\.hcl)$` to `terraform_validate` hook call
    
    ---
    
    Co-authored-by: George L. Yermulnik <yz@yz.kiev.ua>
    MaxymVlasov and yermulnik committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    02c1935 View commit details
    Browse the repository at this point in the history
  2. chore(release): version 1.88.3 [skip ci]

    ## [1.88.3](v1.88.2...v1.88.3) (2024-03-22)
    
    ### Bug Fixes
    
    * **`terraform_providers_lock`:** Require `terraform init` (and `terraform_validate` hook) run when only lockfile changed ([#649](#649)) ([02c1935](02c1935))
    semantic-release-bot committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    1bdc82b View commit details
    Browse the repository at this point in the history