Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Separate `system-first` shims from binary directory

Chiusa
#2,746 3 commenti 1 reazione 1 assegnatario Vedi su GitHub

@liangmiQwQ ci sta già lavorando.

Dal 19/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug enhancement

Currently, when users set node/pm management mode to system-first, Vite+ will still create its shim under the bin_dir, which is put at the front of PATH. And then these shims will search node in the rest of PATH.

This confuses users semantically, as which node shows the path to Vite+ binary but it actually runs the . What's more, it causes infinite recursion problem (#2728).


My proposal is to separate system-first shims from the Vite+'s main bin dir. All binaries should be put in a separate directory named like system-first-bin, which should be put at last of PATH, so users can use their system node/pm first, and fall back to Vite+'s tools if they don't have. (Keep the current behavior)

vp env on / vp env off need to refresh the shims and put them at the right places.

Also, all binaries should use Vite+'s own downloaded version. Logic like finding system node / pnpm can be gone.

This proposal essentially is to re-implement the system-first mode by leveraging operating system capabilities. It can also simplify the architecture, improve the performance and reduce confusion.


Not sure whether this brings breaking change, need to confirm whether to implement before RC (cc @fengmk2)

Lingua principale
Rust
Stelle
5.8k
Fork
263
Merge medio
22h 48m
PR unite (30g)
145

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voidzero-dev/vite-plus

Tutte le issue di voidzero-dev/vite-plus

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.