chore: remove remaining VP_HOME usage (especially snapshot tests)
@forehalo is already working on this.
Since Aug 7, 2026.
Assessment
This issue has not been assessed yet.
Description
Context
VpDirs resolution still honors deprecated VP_HOME as a full legacy-root pin for compatibility, but much of the repo still sets or assumes VP_HOME as the primary install root. That fights the split layout (VP_*_DIR / XDG_* / platform defaults) and keeps fixtures on a monolithic shape.
Follow-up to #2346 / #827.
Goal
Stop using VP_HOME except where it is required as a read-only deprecated override (custom roots). Prefer VP_BIN_DIR / VP_DATA_DIR / VP_CACHE_DIR and XDG/platform defaults everywhere else.
Scope (high signal)
- PTY snapshot suite (
crates/vp_cli_snapshots/): provision per-case homes with split dirs or explicitVP_*_DIR, not a permanentVP_HOME=~/.vite-plusbaseline; update fixtures that expand$VP_HOME/... - CI / bootstrap:
pnpm bootstrap-cli,GITHUB_PATHentries, scripts that exportVP_HOMEonly to force legacy shape - Docs / comments / help strings that still describe
VP_HOMEas the default home - Tests that seed
~/.vite-plussolely to trigger grandfathering (replace with split targets or explicitVP_*_DIR) - Audit remaining
set_var("VP_HOME")/VP_HOME:in Rust, TS, shell, and workflow YAML
Non-goals
- Removing the deprecated read of
VP_HOMEinVpDirsresolution (keep until a later deprecation cut) - Auto-migrating on-disk
~/.vite-plustrees (tracked separately)
Acceptance
- Snapshot runner and fixtures do not require
VP_HOMEfor the default happy path - New tests document layout via
VP_*_DIR/ XDG / platform defaults - Grep for product code that sets
VP_HOMEis limited to documented custom-root / trampoline edge cases
- Dominant language
- Rust
- Stars
- 5.8k
- Forks
- 263
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 148
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from voidzero-dev/vite-plus
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
voidzero-dev/vite-plus#2097 · 10 comments · 2 reactions ·
-
pending triage
Difficulty 5/5 Over a week Newbie friendliness 45/100
voidzero-dev/vite-plus#2781 · 2 reactions ·
-
enhancement
voidzero-dev/vite-plus#2766 · 4 comments · 1 reaction · 1 assignee ·
-
enhancement
voidzero-dev/vite-plus#2764 · 3 comments · 1 assignee ·
-
pending triage
Difficulty 3/5 1-2 days Newbie friendliness 68/100
voidzero-dev/vite-plus#2735 ·
All issues in voidzero-dev/vite-plus
Similar issues
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
n0-computer/iroh#4550 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
paritytech/zombienet-sdk#591 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
farion1231/cc-switch#7638 · 1 comment ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100