The shell sets RVOW_HOME, so a throwaway rvow test writes into the real store
Symptom#
rvow init in a temporary repository prints created <path> under the real rvow home, not under the temporary HOME the test set. A stray local/<name> project folder appears next to the real one.
Cause#
rvow picks its home in this order: RVOW_HOME, the recorded pointer file, XDG_DATA_HOME, then HOME. Overriding only HOME does not move the store while RVOW_HOME is set in the shell.
Fix#
Set the home explicitly and clear the XDG variables for the test:
To remove a stray project, check its folder timestamp and contents first, then delete only that folder.
Evidence#
A quickstart check with a fake HOME created a demo project under the real store because RVOW_HOME was set. After removing it, the same steps with RVOW_HOME set to a temporary folder left the real store untouched.
Also found by searching
- rvow init in a temp repo created a project in my real store
- RVOW_HOME is set in the shell so a test used the real rvow home
- how do I test rvow init without touching my real store