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
Checks that lockfile has the same amount of platform (`h1:`) checksums as specified in hook configuration. It **does not** check are these checksums are valid or that they are belongs to needed platforms.
771
+
Checks that lockfile has the same number of platform checksums (`h1:`) as requested by the hook configuration. It **does not** check whether these checksums are valid or that they match target platforms.
772
772
773
773
```yaml
774
774
- id: terraform_providers_lock
@@ -780,7 +780,7 @@ To replicate functionality in `terraform_docs` hook:
Checks that lockfile has all required SHAs for all providers already added to lockfile, and if any missed - try to add them (but could fail if `terraform init` wasn't run previously)
783
+
Checks that lockfile has checksums (`h1:`) for all requested platforms for all providers tracked by the lockfile, and if any are missed - tries to add them (but could fail if `terraform init` wasn't run previously).
784
784
785
785
786
786
```yaml
@@ -793,10 +793,10 @@ To replicate functionality in `terraform_docs` hook:
793
793
794
794
3. <details><summary><code>--mode=regenerate-lockfile-if-some-platform-missed</code> with <code>terraform_validate</code> hook</summary>
795
795
796
-
Make up-to-date lockfile by adding/removing providers and only then check that lockfile has all required SHAs. If any missed - adds them.
796
+
Regenerates lockfile for all required providers and checks that the lockfile tracks all required platform checksums (`h1:`) afterwards. If any are missed - adds them; superfluous providers are removed.
797
797
798
798
> **Important**
799
-
> Next [`terraform_validate`](#terraform_validate) hook flag requires additional dependency to be installed: `jq`. Also, it could run another slow and time consuming command - `terraform init`
799
+
> The following [`terraform_validate`](#terraform_validate) hook's flag requires additional dependency to be installed: [`jq`](https://github.com/jqlang/jq). Also, it could run another slow and time consuming command - `terraform init`
800
800
801
801
```yaml
802
802
- id: terraform_validate
@@ -810,9 +810,9 @@ To replicate functionality in `terraform_docs` hook:
810
810
811
811
</details>
812
812
813
-
4. <details><summary><code>always-regenerate-lockfile</code> - only with terraform_validate hook.</summary>
813
+
4. <details><summary><code>always-regenerate-lockfile</code> - meant to be used only along with <code>terraform_validate</code> hook</summary>
814
814
815
-
Regenerate lockfile from scratch. Can be useful for upgrading providers in lockfile to latest versions
815
+
Regenerates lockfile from the scratch. May be useful for upgrading providers in the lockfile to the latest versions.
0 commit comments