Martin Odstrčilík

Results 14 comments of Martin Odstrčilík

1) Config ``` - repo: https://github.com/antonbabenko/pre-commit-terraform rev: v1.96.3 hooks: - id: terraform_providers_lock args: - --hook-config=--mode=only-check-is-current-lockfile-cross-platform - --args=-platform=darwin_amd64 - --args=-platform=darwin_arm64 - --args=-platform=linux_amd64 ``` 2) Expected behaviour ``` Lock terraform provider versions.........................................Failed...

I think if `terraform_providers_lock` requires `t init` in some cases there should be a way how to run it. Possibly adding `terraform_init` hook that can be used internally by `terraform_validate`...

> Using terraform_validate hook? Can you please describe use case in which anyone will want to skip terraform validation step? Actually, we skip it because it needs `t init` which...

Hi @MaxymVlasov, the https://github.com/antonbabenko/pre-commit-terraform/pull/950 solves only part of the issue. I am still missing a way how to run `lockfile_contains_all_needed_sha` function without invoking Terraform whatsoever. I could be achieved by...