From 63635551e498a101c22d261dc872ccf61a1edba9 Mon Sep 17 00:00:00 2001 From: Jesse Jaggars Date: Tue, 21 Jul 2026 09:30:38 -0400 Subject: [PATCH] fix(cli): respect CARGO_TARGET_DIR in openshell wrapper script The scripts/bin/openshell wrapper hardcoded the binary path to $PROJECT_ROOT/target/debug/openshell. When CARGO_TARGET_DIR is set (e.g. via .bashrc or mise), cargo places the binary elsewhere and the wrapper fails with 'No such file or directory'. Use ${CARGO_TARGET_DIR:-$PROJECT_ROOT/target} so the wrapper finds the binary regardless of where the build artifacts live. Signed-off-by: Jesse Jaggars Signed-off-by: Jesse Jaggars --- scripts/bin/openshell | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/bin/openshell b/scripts/bin/openshell index 263f5613aa..58cef8ce30 100755 --- a/scripts/bin/openshell +++ b/scripts/bin/openshell @@ -3,7 +3,8 @@ set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" -BINARY="$PROJECT_ROOT/target/debug/openshell" +TARGET_DIR="${CARGO_TARGET_DIR:-$PROJECT_ROOT/target}" +BINARY="$TARGET_DIR/debug/openshell" STATE_FILE="$PROJECT_ROOT/.cache/openshell-build.state" CALLER_PWD="$PWD"