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

fix(migrate): detect Yarn PnP config even when env overrides nodeLinker

Aperta
#2,001 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@fengmk2 ci sta già lavorando.

Dal 1/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

vp migrate currently treats YARN_NODE_LINKER=node-modules as enough to skip Yarn PnP handling. However, if the repository itself has .yarnrc.yml with nodeLinker: pnp, migration can complete successfully while leaving unsupported PnP config in the project. Future installs without that environment override will return to PnP mode.

Expected behavior:

  • If .yarnrc.yml explicitly sets nodeLinker: pnp, migration should not silently pass just because YARN_NODE_LINKER=node-modules is set.
  • Preferably, migration should stop and ask the user to change the project config manually, or apply the existing node-modules conversion flow if that is the intended behavior.
  • YARN_NODE_LINKER=pnp should still hard-block migration as today.

Suggested test:

Create a Yarn Berry fixture with:

# .yarnrc.yml
nodeLinker: pnp

Run migrate with:

YARN_NODE_LINKER=node-modules vp migrate --no-interactive

Assert that migration does not report the project as successfully migrated while leaving nodeLinker: pnp unchanged.

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

  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.