Skip to content

fix: keep DataRoot under LocalAppData program home - #25

Merged
coreybutler merged 1 commit into
mainfrom
fix/dataroot-under-program-home
Oct 30, 2026
Merged

coreybutler merged 1 commit into
mainfrom
fix/dataroot-under-program-home

Conversation

@coreybutler

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • go test ./bootstrap/
  • Install Community with InstallRoot D:\nvm; confirm runtime dirs only under LocalAppData program home
  • nvm use / shim still resolve; no D:\.shim / D:\.nodejs

Custom InstallRoot like D:\nvm made DataRoot=parent(InstallRoot)=D:\,
so .shim/.nodejs spilled onto the drive root. DataRoot is always
%LOCALAPPDATA%\Author Software\nvm (or programRootOverride in tests).

Signed-off-by: Corey Butler <770982+coreybutler@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant