You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix include_patterns ignored for terragrunt blocks without direct changes
This commit fixes issue #2485 where include_patterns were only evaluated
when at least one project had direct file changes in its root directory.
The bug was in the HandleYamlProjectGeneration function where the entire
terragrunt block processing was wrapped in a checkBlockInChangedFiles()
conditional. This prevented include_patterns from being merged into projects
when only files matching the include_patterns changed (but not files in the
project's root directory).
Changes:
- Removed the checkBlockInChangedFiles() conditional wrapper for terragrunt
block processing
- Terragrunt projects are now always generated for blocks
- include_patterns and exclude_patterns are always merged, allowing pattern
matching to occur in GetModifiedProjects() regardless of direct changes
This ensures consistent behavior between terragrunt and non-terragrunt blocks,
where include_patterns are evaluated independently of direct project changes.
Fixes#2485
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
0 commit comments