-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
feat: Speedup terraform_validate
- firstly try run validate without checking is .terraform/
is valid
#524
Conversation
Is there anything i can to to help get this merged :)? |
@yermulnik please review |
terraform_validate
- firstly try run validate without checking is .terraform/
is valid
@smelchior Sorry for delay |
# [1.81.0](v1.80.0...v1.81.0) (2023-06-12) ### Features * Speedup `terraform_validate` - firstly try run validate without checking is `.terraform/` is valid ([#524](#524)) ([d0d08ac](d0d08ac))
This PR is included in version 1.81.0 🎉 |
Thanks for merging this! That makes my life a lot easier :)! |
@bryantbiggs I think it is expected behavior since there are recoverable errors. After it runs, there should be no errors and it should "pass". |
We can add |
I can't reproduce. In any case, open a issue in case you'll need anything |
Put an
x
into the box if that apply:Description of your changes
As discussed in #509 (comment) i would like to introduce a change to run terraform validate in the hook first without running the checks if terraform init is needed.
This helps in situations where there is no
.terraform/modules
or.terraform/providers
directory as terraform init would be called every time.How can we test changes
Run the terraform_validate.sh hook against your test repositories, if
terraform validate
should run first without any additional checks. If it fails, the normal workflow continues.