-
Notifications
You must be signed in to change notification settings - Fork 4
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
pug --program=terragrunt does not find all modules #107
Comments
I think I narrowed it down to a backend definition not found. With debug added:
I get this in the logs:
There is a backend definition which is not found by the HCL parser. This
So I guess parsing HCL is not enough, it has to be evaluated so that Terragrunt's |
@ohmer Thanks for the write-up.
Yes. Thinking about this, the code does two things:
Really, detecting the presence of a Tell me if you think this is a good idea:
I think this is good interim step until something more sophisticated can be implemented. |
💯 and I don't care much about Terragrunt. In my opinion, it should be sent to a special place in DevOps hell. I replace it with Terramate wherever I can and it just works with
Seems sufficient to me. I fail to see a case where it wouldn't be working, as
The backend type information is a nice to have for me. I do not have a strong opinion about this one. |
Describe the bug
Terragrunt modules not loaded.
Setup (please complete the following information):
To Reproduce
Not sure how, sorry. I inherited of a fairly large and messy monorepo.
Opening this more as a troubleshooting request.
pug --program=terragrunt
find only 77 workspaces while I have much more:The dependency crawling fails too with messages like that in the logs:
Could not pin point the issue in the code. --debug did not lead to any other clue in message.log :-/
Expected behavior
1245 or more modules loaded.
Additional context
Terraform 1.7.5
Terragrunt 0.62.0
ASDF and direnv in use
Issue seen with both v0.4.2 and v0.4.3-0.20240723095144-361ae1859435
The text was updated successfully, but these errors were encountered: