From d499128288805e6e80b2520ed9ba85c32dba0c64 Mon Sep 17 00:00:00 2001 From: Alexy Khrabrov Date: Sun, 20 Sep 2026 10:38:09 -0700 Subject: [PATCH] verify-package-attribution.sh: look where CARGO_TARGET_DIR says A gate that gives each worktree its own target directory packaged the facade successfully and then failed the attribution gate, because the script looked only in ./target. Found running ci-local.sh on eigen. Co-Authored-By: Claude Opus 5 (1M context) --- scripts/verify-package-attribution.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/verify-package-attribution.sh b/scripts/verify-package-attribution.sh index d2027d59..1cba6c24 100755 --- a/scripts/verify-package-attribution.sh +++ b/scripts/verify-package-attribution.sh @@ -6,7 +6,11 @@ cd "$repo" package_id=$(cargo pkgid -p grust-graph) version=${package_id##*@} -archive="target/package/grust-graph-${version}.crate" +# Respect CARGO_TARGET_DIR: a gate that gives each worktree its own target +# directory writes the archive there, and this script used to look only in +# ./target and report the archive missing when packaging had in fact succeeded. +target=${CARGO_TARGET_DIR:-target} +archive="${target}/package/grust-graph-${version}.crate" if [[ ! -f "$archive" ]]; then echo "missing packaged facade archive: $archive" >&2