You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -674,8 +674,8 @@ To replicate functionality in `terraform_docs` hook:
674
674
675
675
* `only-check-is-current-lockfile-cross-platform` with [terraform_validate hook](#terraform_validate) - make up-to-date lockfile by adding/removing providers and only then check that lockfile has all required SHAs.
676
676
677
-
> **Important**
678
-
> Next `terraform_validate` flag requires additional dependency to be installed: `jq`. Also, it could run another slow and time consuming command - `terraform init`
677
+
> **Important**
678
+
> Next `terraform_validate` flag requires additional dependency to be installed: `jq`. Also, it could run another slow and time consuming command - `terraform init`
679
679
680
680
```yaml
681
681
- id: terraform_validate
@@ -868,6 +868,9 @@ To replicate functionality in `terraform_docs` hook:
868
868
869
869
### terraform_validate
870
870
871
+
> [!IMPORTANT]
872
+
> If you use [`TF_PLUGIN_CACHE_DIR`](https://developer.hashicorp.com/terraform/cli/config/config-file#provider-plugin-cache), we recommend enabling `--hook-config=--retry-once-with-cleanup=true` or disabling parallelism (`--hook-config=--parallelism-limit=1`) to avoid [race conditions when `terraform init` writes to it](https://github.com/hashicorp/terraform/issues/31964).
873
+
871
874
1. `terraform_validate` supports custom arguments so you can pass supported `-no-color` or `-json` flags:
0 commit comments