From f872cc17a85fe60ae8d2f327c75f193a10feb6a4 Mon Sep 17 00:00:00 2001 From: Eugene Rakhmatulin Date: Thu, 26 Mar 2026 16:49:09 -0700 Subject: [PATCH] Fix for --setup behavior --- run-recipe.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run-recipe.py b/run-recipe.py index 2c700ea..a9f8104 100755 --- a/run-recipe.py +++ b/run-recipe.py @@ -590,10 +590,12 @@ def run_autodiscover() -> dict[str, str] | None: print("Running autodiscover...") print() - # Build env for the subprocess so CONFIG_FILE is passed through + # Pass CONFIG_FILE so autodiscover.sh knows where to save the config. + # Do NOT set CONFIG_FILE_SET=true — that would cause an error if the file + # doesn't exist yet (it's the file we're about to create). env_vars = os.environ.copy() env_vars["CONFIG_FILE"] = str(ENV_FILE) - env_vars["CONFIG_FILE_SET"] = "true" + env_vars.pop("CONFIG_FILE_SET", None) # Run autodiscover interactively so its prompts are shown to the user script = f"""