backends/on-machine: identify generator upfront in generate-vars

so far, `generate-vars` would identify prompted files, yet identify the generators only after prompts.
when one reuses files names across generators, that approach leaves implicit which generator `generate-vars` is prompting file contents for.
this PR addresses this by adding an echo line before any such prompts.
This commit is contained in:
Kiara Grouwstra 2025-04-28 08:31:20 +02:00 committed by GitHub
parent 066dbc7388
commit cf1624eb1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,6 +36,7 @@ let
${lib.concatMapStringsSep "\n" (gen: ''
all_files_missing=true
all_files_present=true
echo "Checking vars for ${gen.name}..."
${lib.concatMapStringsSep "\n" (file: ''
OUT_FILE="$OUT_DIR"/${if file.secret then "secret" else "public"}/${file.generator}/${file.name}
if test -e "$OUT_FILE"; then