Skip to content

Commit 38335f2

Browse files
authored
Merge pull request #26 from zero8dotdev/fix/v0.3.1-remove-temp-home
fix: remove temp HOME isolation causing PATH mismatches (v0.3.1)
2 parents 06bafae + 05cfa0c commit 38335f2

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

.github/workflows/install-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,26 @@ jobs:
3939
run: ${{ matrix.install_cmd }}
4040

4141
- name: Smoke — smriti --version
42+
shell: bash
4243
run: |
4344
export PATH="$HOME/.local/bin:$PATH"
4445
smriti --version || bun "$HOME/.smriti/src/index.ts" --version
4546
4647
- name: Smoke — smriti status
48+
shell: bash
4749
run: |
4850
export PATH="$HOME/.local/bin:$PATH"
4951
smriti status || bun "$HOME/.smriti/src/index.ts" status
5052
5153
- name: Smoke — smriti ingest claude (no sessions OK)
54+
shell: bash
5255
run: |
5356
export PATH="$HOME/.local/bin:$PATH"
5457
smriti ingest claude || bun "$HOME/.smriti/src/index.ts" ingest claude
5558
continue-on-error: false
5659

5760
- name: Smoke — smriti ingest copilot (no VS Code OK)
61+
shell: bash
5862
run: |
5963
export PATH="$HOME/.local/bin:$PATH"
6064
smriti ingest copilot || bun "$HOME/.smriti/src/index.ts" ingest copilot

install.ps1

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ $ErrorActionPreference = "Stop"
2626

2727
# ─── Config ──────────────────────────────────────────────────────────────────
2828
if ($CI) {
29-
$HOME_DIR = Join-Path ([System.IO.Path]::GetTempPath()) "smriti-ci-home"
30-
$null = New-Item -ItemType Directory -Force -Path $HOME_DIR
31-
$env:USERPROFILE = $HOME_DIR
32-
Write-Host "CI mode: using temp HOME $HOME_DIR"
29+
Write-Host "CI mode: running in non-interactive mode"
3330
}
3431

3532
$SMRITI_HOME = Join-Path $env:USERPROFILE ".smriti"

install.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,15 @@
1212
set -euo pipefail
1313

1414
# --- CI mode (used by GitHub Actions install-test.yml) -----------------------
15-
# Pass --ci to run non-interactively with a temp HOME directory.
15+
# Pass --ci to run non-interactively. Sets SMRITI_NO_HOOK to skip Claude Code hook.
1616
CI_MODE=0
1717
for arg in "$@"; do
1818
[ "$arg" = "--ci" ] && CI_MODE=1
1919
done
2020

2121
if [ "$CI_MODE" = "1" ]; then
22-
export HOME="$(mktemp -d /tmp/smriti-ci-XXXXX)"
2322
export SMRITI_NO_HOOK=1
24-
echo "CI mode: using temp HOME $HOME"
23+
echo "CI mode: skipping Claude Code hook setup"
2524
fi
2625

2726
# --- Configuration -----------------------------------------------------------

uninstall.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,8 @@ param([switch]$CI)
1111
Set-StrictMode -Version Latest
1212
$ErrorActionPreference = "Stop"
1313

14-
if ($CI) {
15-
$HOME_DIR = Join-Path ([System.IO.Path]::GetTempPath()) "smriti-ci-home"
16-
$env:USERPROFILE = $HOME_DIR
17-
}
14+
# Note: CI flag is accepted for compatibility but temp HOME is no longer used
15+
# (runner HOME is cleaned up automatically after job)
1816

1917
$SMRITI_HOME = Join-Path $env:USERPROFILE ".smriti"
2018
$BIN_DIR = Join-Path $env:USERPROFILE ".local\bin"

0 commit comments

Comments
 (0)