From cf1624eb1f6d5f1c3f45ffa18e09ee1e08e4e329 Mon Sep 17 00:00:00 2001 From: kiara Date: Mon, 28 Apr 2025 08:31:20 +0200 Subject: [PATCH] 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. --- backends/on-machine.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/backends/on-machine.nix b/backends/on-machine.nix index 0dae0e0..7af27ea 100644 --- a/backends/on-machine.nix +++ b/backends/on-machine.nix @@ -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