Skip to content

Commit 47c7667

Browse files
committed
docs: Documenting fix for hcl validate
1 parent 256d8d5 commit 47c7667

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/src/data/changelog/v1.0.1.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ Thank you to the OpenTofu team for introducing this warning to ensure that Windo
8181

8282
---
8383

84+
#### `hcl validate` no longer fails on `dependency.outputs` references
85+
86+
`terragrunt hcl validate` previously failed with "Unsupported attribute" when a configuration referenced `dependency.<name>.outputs.<key>` without `mock_outputs`.
87+
88+
During validation, output resolution is skipped, but the `outputs` attribute was never added to the dependency evaluation context, causing any output reference to error. The fix provides a dynamic placeholder for dependency outputs (and inputs) during validation so that attribute access evaluates to unknown rather than failing. Additionally, the dependency resolution pipeline is now more resilient during validation. Dependencies with unresolvable `config_path` values or nonexistent targets no longer cause the entire `dependency` namespace to disappear from the evaluation context.
89+
8490
#### Destroy queue now displays units in correct order
8591

8692
Previously, the run queue display showed units in apply order even for destroy commands. The queue now correctly shows dependents before their dependencies when running destroy, matching the actual execution order.

0 commit comments

Comments
 (0)