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