Ray's Knowledge Base
Unlock

The shell sets RVOW_HOME, so a throwaway rvow test writes into the real store

PitfallVerified 2 Oct 2026Holds project: rvow
Pitfall. The symptom, what causes it, and the fix that was run and seen to work.

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:

env -u XDG_CONFIG_HOME -u XDG_DATA_HOME HOME=$T/home RVOW_HOME=$T/rvow-home rvow init

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