Question about the caveats for calling modules #2122
-
Hi, First of all; thanks for the excellent work on I have some questions about Calling modules - Caveats. Basically I would like to better understand what those caveats mean. These are my questions, per caveat:
Regards, Ricardo P.S. I did browse the code and I think I found where this logic resides (runner.go) but could not answer my own questions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is because the feature was designed to find issues caused by module arguments. If an issue is reported that is not related to variables (module arguments), you will have to fix modules that are not under your control in order to fix all the issues.
It's for the same reasons explained above. It wouldn't be a problem if the rules didn't ignore child modules, but it would be slower.
Yes. Inspecting a child module as the root module will find any issues it has, such as syntax issues. Calling the child module will find any issues caused by input values in another module. |
Beta Was this translation helpful? Give feedback.
This is because the feature was designed to find issues caused by module arguments. If an issue is reported that is not related to variables (module arguments), you will have to fix modules that are not under your control in order to fix all the issues.
Also, if you are inspecting a local module as the root module using
--recursive
, the same issues will be reported multiple times.