From 6ab8d7e628c2ab066457bcd6288b8daac4af14c4 Mon Sep 17 00:00:00 2001 From: luisleo526 Date: Sun, 11 Oct 2026 03:35:18 +0800 Subject: [PATCH] fix(entrypoint): make the per-run work dir honour TMPDIR on every host macOS mktemp ignores TMPDIR for the no-template form; pass an explicit template so the private work dir stays under TMPDIR as the harness expects. --- docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 294cc0d3..dff0a9a5 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -96,7 +96,7 @@ SRC_CPP="${IN_DIR}/strategy.cpp" OHLCV="${IN_DIR}/ohlcv.csv" # Per-run work dir so parallel in-process invocations never collide on the # generated TU / shared object. Cleaned up on exit. (Was fixed /tmp/strategy.*) -WORK="$(mktemp -d)" +WORK="$(mktemp -d "${TMPDIR:-/tmp}/pf-work.XXXXXXXXXX")" trap 'rm -rf "$WORK"' EXIT GEN="${WORK}/strategy.cpp" SO="${WORK}/strategy.so"