-
-
Notifications
You must be signed in to change notification settings - Fork 967
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
find_in_parent_folders
throws errors and warnings in some cases when used from a dependency
#2941
Comments
I am having a similar problem with It breaks all sorts of dependencies that have different nesting levels than the current terragrunt.hcl. I suspect the breaking change was introduced in 8af1118 edit: seems the commit I linked wasn't the cause of it, because that's been included longer. It also broke in 0.55.2 for me. Not having that error in 0.55.1 in my case, a construct like edit2: has been fixed with https://github.com/gruntwork-io/terragrunt/releases/tag/v0.55.6 |
Will take a look for a fix, most probably it is caused by HCL parsing code which looks for |
I suspect the issue was fixed as part of https://github.com/gruntwork-io/terragrunt/releases/tag/v0.55.4 at least in my tests it does not occurring now Please confirm from your side |
I had this yesterday evening using 0.55.4, found this issue and downgraded to 0.55.1, and it worked. We have dependencies that use find_in_partent_folders as described in this issue. |
Additional fix included since: https://github.com/gruntwork-io/terragrunt/releases/tag/v0.55.6 |
Hi everyone, I'm still experiencing this issue with find_in_parent_folders in the latest version. In the root of our Git repository, there are folders for deployment and infrastructure. When I execute one of the deployment configurations, it contains a dependency on infrastructure.
The dependent infrastructure module includes a template file:
The Terragrunt configuration template includes a local block that utilizes the find_in_parent_folders function, which leads to Issues following Terraform version 0.55.1.
Error: ERRO[0001] Error: Error in function call Config files are located here:
Could someone please assist in resolving this? Thanks for your help! |
same problem in 0.67.4 find_in_parent_folders searches the path relative to the current *.hcl file not the originating terragrunt.hcl |
Describe the bug
find_in_parent_folders
used in dependencies throws errors and warnings. It seems that in dependencies, instead of being searched from the dependency,find_in_parent_folders
is searching from the current project instead and throws errors.This appeared in 0.55.2 and does not appear in 0.55.1.
The project still works but error messages appear which pollute the output:
To Reproduce
You need the following tree:
foo/
test/
terragrunt.hcl
foo.hcl
bar/
terragrunt.hcl
foo/test/terragrunt.hcl
:bar/terragrunt.hcl
:Expected behavior
Planning the
bar/
project should work without any warnings or errors.Versions
Additional context
Works in 0.55.1
The text was updated successfully, but these errors were encountered: