From f075c967f24d885ac42c1e99329bee3498154598 Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 20 Nov 2026 15:42:47 +0800 Subject: [PATCH] fix(security): honor CARGO_TARGET_DIR in the G-C lane The lane hard-coded target/debug/marqdo, so a reproducible run from a clean git archive with an external CARGO_TARGET_DIR built the binary and then reported a false missing-binary failure. TESTS: bash -n tests/security/run-lane.sh; G-C lane on a clean archive. CI_URL: none from this host (Gitee remote, no GitHub credentials). SECURITY_SCOPE: unchanged; the lane still requires an ordinary user and 7/7. --- tests/security/run-lane.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/security/run-lane.sh b/tests/security/run-lane.sh index 0e086e0..0122a88 100755 --- a/tests/security/run-lane.sh +++ b/tests/security/run-lane.sh @@ -33,7 +33,8 @@ cargo test -p marqdo-sandbox --test security_linux -- --test-threads=1 echo "== build CLI ==" cargo build -p marqdo-cli -bin="$repo/target/debug/marqdo" +target_dir="${CARGO_TARGET_DIR:-$repo/target}" +bin="$target_dir/debug/marqdo" platform="$("$bin" inspect examples/hello.mq.md --platform --json)" python3 - "$platform" <<'PY' import json, sys