chore: remove remaining VP_HOME usage (especially snapshot tests)
@forehalo ci sta già lavorando.
Dal 7/8/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- Rust
- Stelle
- 5.8k
- Fork
- 263
- Merge medio
- 1g 3h
- PR unite (30g)
- 147
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di voidzero-dev/vite-plus
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
voidzero-dev/vite-plus#2804 · 1 reazione ·
-
pending triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
voidzero-dev/vite-plus#2801 · 1 reazione ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
voidzero-dev/vite-plus#2097 · 10 commenti · 2 reazioni ·
-
documentation
voidzero-dev/vite-plus#2800 · 1 assegnatario ·
-
pending triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
voidzero-dev/vite-plus#2796 · 1 commento ·
Tutte le issue di voidzero-dev/vite-plus
Issue simili
-
Replayed reasoning items send "content": null, which the Responses API schema does not permit Apertabug CLI custom-model
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
fulcrumgenomics/ferro-hgvs#2251 ·
-
A-allocators A-docs C-enhancement T-libs
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100