Skip to content
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

Fixing behavior of --terragrunt-strict-include when no --terragrunt-include-dir flags are included #1631

Merged

Conversation

celestialorb
Copy link
Contributor

This PR is an attempt to fix the behavior of Terragrunt when the --terragrunt-strict-include flag is supplied without any --terragrunt-include-dir flags.

The expected behavior is that Terragrunt will evaluate to not run on any modules in this case, but the current behavior is that it will run over all modules of the working directory.

This is to address #1600.

@celestialorb celestialorb force-pushed the bugfix/1600-strict-include-fix branch from 2aa1e8d to 90d7e69 Compare April 2, 2021 21:39
@celestialorb celestialorb changed the title WIP: Fixing behavior of --terragrunt-strict-include when no --terragrunt-include-dir flags are included Fixing behavior of --terragrunt-strict-include when no --terragrunt-include-dir flags are included Apr 2, 2021
@celestialorb
Copy link
Contributor Author

Added in basic tests for this behavior and was able to get them to pass locally on my machine after a minor change as Go wasn't picking up the TERRAGRUNT_DEBUG_FILE constant value located in integration_debug_test.go. I didn't include that change though, just the additions to the tests and the actual fix as well.

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes LGTM, thank you!

One minor request: would you mind updating the docs to make it clear what the behavior will be?

@celestialorb
Copy link
Contributor Author

@brikis98 Yep, I'll find some time to do that later tonight or tomorrow, thanks!

@celestialorb
Copy link
Contributor Author

@brikis98 Added a statement to the docs about the new behavior of the --terragrunt-strict-include flag. If it all looks good, this should be ready to merge in. :)

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! I'll kick off tests now.

@brikis98
Copy link
Member

Tests passed! Merging now.

@brikis98 brikis98 merged commit a0b5c26 into gruntwork-io:master Apr 12, 2021
@brikis98
Copy link
Member

https://github.com/gruntwork-io/terragrunt/releases/tag/v0.28.20

This was referenced Aug 5, 2021
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.

2 participants