A hook lists the directory before each plan.
terraform { source = "git::https://github.com/acme/modules.git//app?ref=v1.0.0"
before_hook "list" { commands = ["plan"] execute = ["ls", path.download] }}A field of the path variable.
path.download is defined in a unit, and in every file that the unit includes or reads. It is not defined in terragrunt.stack.hcl, in a file that the stack file reads, or in the terragrunt.values.hcl beside it.
Terragrunt resolves path.download before it reads the outputs of a dependency. A unit that references path.download returns an error when its download_dir or its terraform.no_dot_terragrunt_cache references a dependency output.
A locals block cannot read path.download, because Terragrunt evaluates locals before it resolves the directory. A reference there returns an error. Read path.download in inputs, or in a hook of the terraform block.
With --all and --source, render does not add the module path of each unit to the source, so its path.download is not the directory that run --all uses.
A hook lists the directory before each plan.
terraform { source = "git::https://github.com/acme/modules.git//app?ref=v1.0.0"
before_hook "list" { commands = ["plan"] execute = ["ls", path.download] }}