-
-
Notifications
You must be signed in to change notification settings - Fork 539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[terrraform_validate] Script fails for projects with multiple terraform submodules on first run #171
Comments
Thanks for the issue report! v1.46.0 has been just released. |
jperson
added a commit
to CuriBio/IaC
that referenced
this issue
Feb 23, 2021
jperson
added a commit
to CuriBio/IaC
that referenced
this issue
Feb 23, 2021
* bump version of pre-commit-terraform to fix antonbabenko/pre-commit-terraform#171
jperson
added a commit
to CuriBio/IaC
that referenced
this issue
Feb 24, 2021
* bump version of pre-commit-terraform to fix antonbabenko/pre-commit-terraform#171
jperson
added a commit
to CuriBio/IaC
that referenced
this issue
Feb 24, 2021
* bump version of pre-commit-terraform to fix antonbabenko/pre-commit-terraform#171
jperson
added a commit
to CuriBio/IaC
that referenced
this issue
Feb 24, 2021
* bump version of pre-commit-terraform to fix antonbabenko/pre-commit-terraform#171
jperson
added a commit
to CuriBio/IaC
that referenced
this issue
Feb 24, 2021
* bump version of pre-commit-terraform to fix antonbabenko/pre-commit-terraform#171
jperson
added a commit
to CuriBio/IaC
that referenced
this issue
Feb 24, 2021
* bump version of pre-commit-terraform to fix antonbabenko/pre-commit-terraform#171
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran into an issue with
terraform_validate
when trying to run in on a project with multiple sub-folders containing.tf
files. The solution would be to add the flagrequire_serial: true
to the hook.Project Tree
Issue:
The check fails on the first run of pre-commit. However, it passes on re-running it, which led me to suspect an issue with the parallel threading capabilities of pre-commit.
Running a second time:
Reproduction
I downloaded the scripts
terraform_validate.sh
andlib_optget
to my local machine and setup a local hook as follows:I was able to reproduce the problem successfully.
Solution:
Made the following change to the hook:
After adding
require_serial: true
, the pre-commit checks passes on the first try!The text was updated successfully, but these errors were encountered: