Terragrunt catalog TUI reports `terragrunt.hcl` scaffolded when boilerplate template generates a different file
Describe the bug
When scaffolding a boilerplate template from the terragrunt catalog TUI, the post-scaffold success message refers to the wrong output file. It reports that terragrunt.hcl was scaffolded, even when the template actually generates different files and there are no terragrunt.hcl among them.
Steps To Reproduce
Catalog scaffold success message for boilerplate templates (gruntwork-io/terragrunt).
In an empty directory (or any directory where you want the scaffold output), run:
terragrunt catalog github.com/Nerdeez/terragrunt-catalogIn the catalog TUI, open Templates and select a boilerplate template, for example:
- Live root template (
templates/root) — generatesroot.hcl - config (
templates/config) — generates files underconfig/(notterragrunt.hcl)
- Live root template (
Press
sto scaffold into the current directory (.).Complete the scaffold prompts (fill in template variable values).
Observe the success message shown after scaffolding completes.
List the files that were actually created in the output directory (e.g.
ls -la).
Expected behavior
After scaffolding a boilerplate template from the catalog TUI, the success message should reflect what was actually created—not assume terragrunt.hcl.
For example, when scaffolding the Live root template from github.com/Nerdeez/terragrunt-catalog, the message should indicate that root.hcl was generated (and any dependency outputs, such as config/), e.g.:
root.hcl scaffolded
./root.hcl
./config/common.hcl
./config/billing.hcl
./config/region.hclWhen scaffolding the config template alone, the message should list the files under config/ that were created, not terragrunt.hcl.
In general, the post-scaffold callout should name the file(s) produced by the template (or say something like “template scaffolded successfully” with an accurate list of generated paths), so users are not directed to open a file that does not exist.
Must haves
- Steps for reproduction provided.
Nice to haves
- Terminal output
- Screenshots
Terminal output
Template (bug) — Live root template
Success message claims terragrunt.hcl was scaffolded:
╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ terragrunt.hcl scaffolded │
│ │
│ ./terragrunt.hcl │
│ │
│ Values you filled in the form are populated; unfilled inputs are marked with `# TODO: fill in value`. │
│ │
│ Open the file and replace any remaining TODO placeholder with a real │
│ value before running terragrunt. │
│ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯Actual files on disk after scaffold (ls -la):
total 8
drwxr-xr-x@ 3 yarivkatz staff 96 Aug 26 12:44 .
drwxr-xr-x@ 8 yarivkatz staff 256 Aug 24 17:53 ..
-rw-r--r--@ 1 yarivkatz staff 2609 Aug 26 12:44 root.hclNo terragrunt.hcl — only root.hcl.
Versions
- Terragrunt version:
v1.1.3 - OpenTofu/Terraform version: OpenTofu
v1.10.7 - Environment: macOS (darwin), zsh
- Catalog:
github.com/Nerdeez/terragrunt-catalog(main)
Source: gruntwork-io/terragrunt