fix: Update Terragrunt flag for v0.85.0+ compatibility #1588
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
Updates Terratest to be compatible with Terragrunt v0.85.0+ by replacing the deprecated
--terragrunt-non-interactiveflag with the new--non-interactiveflag.This resolves test failures that occur when using modern Terragrunt versions due to Terragrunt's CLI redesign that removed all
--terragrunt-*prefixed flags in favor of shorter alternatives.Changes Made
modules/terraform/cmd.go--terragrunt-non-interactiveto--non-interactiveTesting
✅ Verified with Terragrunt v0.86.2, Go v1.24.2 on Ubuntu 24.04
✅ All terragrunt tests pass:
TestTerragruntExample,TestTerragruntConsoleBackward Compatibility
This change maintains compatibility:
--non-interactiveflag--non-interactive(flag existed before deprecation)TODOs
Release Notes (draft)
Updated Terratest Terragrunt integration to use
--non-interactiveflag instead of deprecated--terragrunt-non-interactiveflag for compatibility with Terragrunt v0.85.0+.Migration Guide
No migration required for users. This is an internal change to maintain compatibility with modern Terragrunt versions. Users may need to update their Terragrunt installations if using very old versions, but this change is backward compatible with all supported Terragrunt releases.
References