-
Notifications
You must be signed in to change notification settings - Fork 159
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
terragrunt validate - issues with root terragrunt.hcl #40
Comments
Just to confirm, is this an issue with a pre-commit hook you are using, or are you manually running |
pre-commit. although it could be replicated using |
Can you point to which In any case, I think this is a terragrunt issue so I will most likely migrate this over to that repo. |
Also, this is sort of expected behavior since The |
@yorinasub17 I got around this in the end by adding rules to the pre-commit cmd for terragrunt/terraform validate so that the root .hcl is ignored and that only files named terragrunt.hcl elsewhere where tested. example below
happy for this to be closed off |
Failures in root terragrunt.hcl terragrunt validate.
Consider the following dir structure
Where the child includes the parent via
find_in_parent_folders()
.If the parent has many
read_terraform_config(find_in_parent_folders("common.hcl"))
type includes it will fail when terragrunt validate runs against it in singular. As the dir traversal fails to find the file.Anything that can be done about this?
The text was updated successfully, but these errors were encountered: