From f4e292e7b09057c77e2a9293b40051be2666c4f8 Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 27 Nov 2026 01:40:57 +0800 Subject: [PATCH] fix(integration): scope the CLI target directory to the CLI build The exported CARGO_TARGET_DIR leaked into the consumer repositories, so View's package script built into the CLI target directory and then failed to find its own release binary. Only the pinned CLI build names that target directory. --- scripts/integration.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/integration.sh b/scripts/integration.sh index d1e0ea0..cb2aba2 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -42,10 +42,11 @@ test -f "$work/stdlib/stdlib.json" # 2. CLI and Worker from the exact pinned CLI gitlink. source_sha="$(git -C cli rev-parse HEAD)" # The CLI release packager resolves its binaries from the pinned CLI checkout's -# own target directory; keep the build there so the package step consumes the -# same artifacts without a second build. -export CARGO_TARGET_DIR="$root/cli/target" -cargo build --manifest-path cli/Cargo.toml --locked --release \ +# own target directory; keep this build there so the package step consumes the +# same artifacts without a second build. Do not export CARGO_TARGET_DIR: the +# consumer repositories build into their own target directories. +CARGO_TARGET_DIR="$root/cli/target" \ + cargo build --manifest-path cli/Cargo.toml --locked --release \ -p marqdo-cli -p marqdo-provider-worker version="$(python3 -c ' import pathlib, tomllib