-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
Summary
Terragrunt v1.0 (expected Q1 2026) introduces a CLI redesign that changes how terraform passthrough commands are invoked. The terratest terragrunt module currently uses the legacy CLI format which will be deprecated.
What changes
| Legacy (current) | v1.0 |
|---|---|
terragrunt plan ... |
terragrunt run plan ... |
terragrunt plan --all ... |
terragrunt run --all plan ... |
terragrunt hcl format |
terragrunt hcl fmt |
Native terragrunt commands (hcl validate, render, dag graph, stack *) are unchanged.
Proposed implementation
- Add
UseLegacyCLI boolfield toOptionsstruct (defaultfalse= v1.0 format) - Centralize the command transformation in
cmd.go: prependrunfor terraform passthrough commands (init,plan,apply,destroy,validate,output), reposition--allflag - Update
format.go:format→fmtin v1.0 mode - Update
run_all.go: adjust arg ordering forrun --all <cmd> - No changes to public API — all 58 functions keep their signatures
Files to modify
modules/terragrunt/options.gomodules/terragrunt/cmd.gomodules/terragrunt/format.gomodules/terragrunt/run_all.go- Corresponding test files
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels