fix(installer): honor --path for Aider roster

This commit is contained in:
Rudy Celekli
2026-09-27 23:39:04 -04:00
parent 479193dcce
commit 2bc53022ef
2 changed files with 17 additions and 1 deletions
+3 -1
View File
@@ -946,8 +946,10 @@ install_cursor() {
install_aider() {
local src="$INTEGRATIONS/aider/CONVENTIONS.md"
local dest="${PWD}/CONVENTIONS.md"
local dest_dir; dest_dir="$(resolve_dest aider "$PWD")"
local dest="$dest_dir/CONVENTIONS.md"
[[ -f "$src" ]] || { err "integrations/aider/CONVENTIONS.md missing. Run convert.sh first."; return 1; }
mkdir -p "$dest_dir"
if [[ -f "$dest" ]]; then
# Never overwrite: CONVENTIONS.md is aider's own user-authored file, and the
# one sitting here may well be the reader's rather than ours. But the guard
+14
View File
@@ -161,6 +161,20 @@ assert_eq 0 "$(find "$home" -type f | wc -l | tr -d ' ')" "--dry-run creates no
echo ""
echo "destinations"
home="$(sandbox aider-path)"
project="$home/project"
dest="$home/custom-dir"
mkdir -p "$project"
RUN_OUT="$(cd "$project" && HOME="$home" "$INSTALL" --no-interactive --tool aider --path "$dest" 2>&1)"; RUN_STATUS=$?
assert_eq 0 "$RUN_STATUS" "Aider --path install exits 0"
[[ -f "$dest/CONVENTIONS.md" ]] && pass "Aider --path installs into the selected directory" \
|| fail "Aider --path installs into the selected directory"
[[ ! -e "$project/CONVENTIONS.md" ]] && pass "Aider --path leaves the project root untouched" \
|| fail "Aider --path leaves the project root untouched"
printf 'My conventions\n' > "$dest/CONVENTIONS.md"
RUN_OUT="$(cd "$project" && HOME="$home" "$INSTALL" --no-interactive --tool aider --path "$dest" 2>&1)"; RUN_STATUS=$?
assert_eq 'My conventions' "$(cat "$dest/CONVENTIONS.md")" "Aider --path preserves an existing conventions file"
home="$(sandbox default-dest)"
run_install "$home" --tool claude-code
assert_eq "$TOTAL_AGENTS" "$(count_md "$home/.claude/agents")" \