feat: support discovery of symlinked modules #3562
Open
+366
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #1611.
This PR continues the work that was started by @aslafy-z in the staled #3101 PR as following:
WalkWithSymlinks
function to theutil
package, here is the reason for having it's own implementation in the Terragrunt codebase:edwardrf/symwalk
on the original implementation was working only because the usage ofhelpers.CopyEnvironment
in the tests, was resolving copying and symlinks statically, and not really preserving it on the temporary env path, which defeats the purpose of test and does not mimic what terragrunt will be doing when running targeting a real directory with symlinks directly into it, this issue was addressed in my tests and a comment regarding to it was left in the codebase..terragrunt-cache
invalidation, which was one of the concerns added by @denis256 feat: support discovery of symlinked modules #3101 (comment)TODOs
Read the Gruntwork contribution guidelines.
Release Notes (draft)
Added support for discovery of symlinked modules