CLI argument--terragrunt-include-dir
includes all folders if the pattern does not match since version 0.50.1
#3274
Labels
bug
Something isn't working
Describe the bug
A run of
terragrunt run-all apply --terragrunt-include-dir "does-not-exist-*"
leads to apply of all folders in the current directory. Especially dangerous when running in the CI and you upgraded from 0.50.0 to any later version!The weird behaviour of this was introduced with this PR: #2664
IMO this is a breaking change but was added as a patch increment.
Steps To Reproduce
terragrunt.hcl
files.I confirmed in my local tests that it is not related to glob matching, so any non existing folder in the include should work to reproduce the problem.
Expected behavior
--terragrunt-include-dir
should work like a whitelist (which it did before version 0.50.1)Nice to haves
A screenshot of a CLI session to reproduce:
Versions
The text was updated successfully, but these errors were encountered: