From 3648071b39d183e2510823e46fc2975b0158b307 Mon Sep 17 00:00:00 2001 From: Tsvika Shapira Date: Sun, 27 Sep 2026 14:23:46 +0300 Subject: [PATCH] fix(test): run ctt with TMPDIR=/tmp ctt renders from a copy under $TMPDIR, and the generated `just init` runs detect-secrets before ctt normalizes `_src_path` in .copier-answers.yml. On macOS the per-user $TMPDIR (/var/folders/xx//T) reads as a high-entropy secret, so `just test` failed locally. Linux CI was fine. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01GyMoD8tx4oz1bpJ1tEL845 --- justfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 8e6ff02..bb91a07 100644 --- a/justfile +++ b/justfile @@ -11,7 +11,10 @@ lint: test: rm -rf .ctt - uv run ctt + # ctt renders from a copy under $TMPDIR, and the generated `just init` runs + # detect-secrets before ctt normalizes `_src_path`. macOS's per-user $TMPDIR + # (/var/folders/xx//T) reads as a high-entropy secret, so use /tmp. + TMPDIR=/tmp uv run ctt _assert_clean_repo: [ -z "$(git status --porcelain)" ]