-
-
Notifications
You must be signed in to change notification settings - Fork 581
Support tflint modules with differing module dependencies #534
Copy link
Copy link
Open
Labels
estimate/4hNeed 4 hours to be doneNeed 4 hours to be donefeatureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershook/terraform_providers_lockBash hookBash hookhook/terraform_tflintBash hookBash hook
Metadata
Metadata
Assignees
Labels
estimate/4hNeed 4 hours to be doneNeed 4 hours to be donefeatureNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershook/terraform_providers_lockBash hookBash hookhook/terraform_tflintBash hookBash hook
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 && tflintfor each module directory to ensure all dependencies are available and installed. When trying to use theterraform_tflinthook, it fails for modules with dependencies.How could pre-commit-terraform help solve your problem?
Have the ability to automatically invoke
terraform getper-directory when running thetflinthook, either by default or with a flag. Whilstterraform getis 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.