You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
orgloop doctor: env vars in script: paths not expanded during validation #190
Bug: orgloop doctor does not expand env vars in script: path validation
Version
orgloop 0.7.8
Description
When a transform uses an env-var-anchored script: path (e.g. ${ORGLOOP_PROJECT_ROOT}/scripts/foo.sh), the doctor validation reports "Script not found" even when the env var is set and the script exists on disk.
The error message contains the unexpanded literal ${ORGLOOP_PROJECT_ROOT} rather than the resolved path, confirming the validator skips env-var substitution:
✗ transform: skip-sean-branches — Script not found: ${ORGLOOP_PROJECT_ROOT}/scripts/skip-sean-branches.sh
The script is present at the resolved path and loads correctly at runtime; only the doctor check is broken.
Reproduction
Set ORGLOOP_PROJECT_ROOT=/path/to/project in your module's .env
Add a transform with script: ${ORGLOOP_PROJECT_ROOT}/scripts/myscript.sh (where the script exists)
Run orgloop doctor (with the env loaded)
Doctor reports "Script not found: ${ORGLOOP_PROJECT_ROOT}/scripts/myscript.sh" despite the file existing
Workaround
orgloop start --daemon --supervised --force bypasses the doctor check. Runtime script execution works correctly.
Expected behaviour
The doctor should expand env vars before stat-checking script paths, consistent with how the runtime resolves them.
Activity