From ddd024861917255e8f722fac318746b56d418c4c Mon Sep 17 00:00:00 2001 From: iris Date: Wed, 20 May 2026 21:01:26 +0200 Subject: [PATCH] harness-base: fix python3 -c quoting inside nix string Two consecutive single quotes ('') inside a Nix indented string (''...'') are treated as the string-end delimiter, breaking nix evaluation. Switch the shell -c argument from double-quotes to single-quotes so the Python string literals use double-quotes instead, avoiding any '' sequences in the Nix source. --- nix/templates/harness-base.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/templates/harness-base.nix b/nix/templates/harness-base.nix index 43a63bb..9ec301b 100644 --- a/nix/templates/harness-base.nix +++ b/nix/templates/harness-base.nix @@ -317,7 +317,7 @@ USER=$(curl -sf --max-time 5 \ -H "Authorization: token $TOKEN" \ "$FORGE_URL/api/v1/user" \ - | python3 -c "import sys,json; print(json.load(sys.stdin).get('login',''))" \ + | python3 -c 'import sys,json; print(json.load(sys.stdin).get("login",""))' \ 2>/dev/null || true) if [ -z "$USER" ]; then echo "tea-login: could not resolve username from forge API; skipping"