chore: remove remaining VP_HOME usage (especially snapshot tests)
Maintainer thường phản hồi trong vòng 1 ngày
@forehalo đang làm issue này rồi.
Từ ngày 7/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- Rust
- Star
- 6k
- Fork
- 271
- Merge trung bình
- 1 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 198
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
`npx --package=vite-plus vp create` fails with exit 127 when npm is the chosen package managerĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
voidzero-dev/vite-plus#2970 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PowerShell `vp` wrapper hides failures: `$?` is `True` and `&&` keeps going after `vp` failsCó thể đã có người làm @fengmk2 đã nhận 2 ngày trước. Đang mởbug pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/vite-plus#2934 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Skip the `vpr` hint when the script runs the same built-inCó thể đã có người làm @kshanxs đã nhận 1 ngày trước. Đang mởpending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
voidzero-dev/vite-plus#2892 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/vite-plus#2882 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`lazyPlugins` docs: dynamic import of a local module still slows down config loadingCó thể đã có người làm @kshanxs đã nhận 1 ngày trước. Đang mởdocumentation pending triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
voidzero-dev/vite-plus#2875 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
bug user-priority/P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
t8y2/dbx#11718 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rescript-lang/rescript#8765 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nautechsystems/nautilus_trader#5287 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
farion1231/cc-switch#8072 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Python 3.15 supportCó thể đã có người làm @amnesiaof đã nhận hôm nay. Đang mởL: python L: python:uv
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dependabot/dependabot-core#16524 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày