Support tflint modules with differing module dependencies #534
Labels
estimate/4h
Need 4 hours to be done
feature
New feature or request
good first issue
Good for newcomers
hook/terraform_providers_lock
Bash hook
hook/terraform_tflint
Bash hook
Milestone
What problem are you facing?
In my configuration, I have a number of different modules in the same repo but each module has differing dependencies (either local or published). At present, I'm linting by running
cd {dir} && terraform get && tflint
for each module directory to ensure all dependencies are available and installed. When trying to use theterraform_tflint
hook, it fails for modules with dependencies.How could pre-commit-terraform help solve your problem?
Have the ability to automatically invoke
terraform get
per-directory when running thetflint
hook, either by default or with a flag. Whilstterraform get
is a noop when nothing needs to be done, it still takes time to be invoked so an opt-in hook flag may be the better option.Happy to help craft a PR if this is something that could be incorporated.
The text was updated successfully, but these errors were encountered: