fix(integration): scope the CLI target directory to the CLI build
ci/woodpecker/pr/eco Pipeline was successful
ci/woodpecker/push/eco Pipeline was canceled

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.
This commit was merged in pull request #12.
This commit is contained in:
cflmy committed 2026-11-27 01:40:57 +08:00
1 parent e7324edc0f
commit f4e292e7b0
1 file changed
+5 -4
+5 -4
View File
@@ -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