- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
#1891 Dependent modules detection update #1915
Conversation
@@ -577,7 +577,8 @@ func FindWhereWorkingDirIsIncluded(terragruntOptions *options.TerragruntOptions, | |||
dir = dir + filepath.FromSlash("/") | |||
cfgOptions, err := options.NewTerragruntOptions(dir) | |||
if err != nil { | |||
return nil, err | |||
terragruntOptions.Logger.Debugf("Failed to build terragrunt options from %s %v", dir, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a real error that should probably be returned?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return nil, err | ||
// loggign error as debug since in some cases stack building may fail because parent files can be designed | ||
// to work with relative paths from downstream modules | ||
terragruntOptions.Logger.Debugf("Failed to build module stack %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the real fix for this issue? Where we don't return an error in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understood! I'll kick off tests now.
Tests passed! Merging now. |
Updated FindWhereWorkingDirIsIncluded to return only detected dependent modules, in case of failures user will be asked to confirm the action in any case.
Fix for: #1891