Skip to content

Conversation

MrKeiKun
Copy link
Contributor

@MrKeiKun MrKeiKun commented Oct 3, 2025

Description
Digger was not automatically detecting dependencies when users used read_terragrunt_config(find_in_parent_folders()) in their locals blocks. This forced users to manually specify the same dependencies in both locals and extra_digger_dependencies blocks, violating the DRY principle.

Changes Made

  • Added detectReadTerragruntConfigDependencies() function with regex pattern matching
  • Enhanced parseLocals() to scan raw HCL content before Terragrunt evaluation
  • Modified resolveLocals() to merge auto-detected dependencies with existing ones
  • Added comprehensive test coverage for various scenarios

Referenced Issue: #2250

Signed-off-by: Lorenzo Buitizon <the.keikun@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant