Migration pins lockfile-only package managers and can break CI
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start at the vp migrate entry point and trace how a lockfile selects a package manager and writes packageManager or devEngines.packageManager; compare that behavior with existing declarations. Use the actions/setup-node and npm ci scenario to verify that lockfile-only projects remain unpinned with a warning, explicit declarations are preserved, and pinning remains separate in vp env pin.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
A project with only a lockfile has no exact package-manager set.
But vp migrate adds an exact devEngines.packageManager declaration.
This can break existing CI before Vite+ runs.
For example, actions/setup-node followed by npm ci may use the npm version bundled with Node, which can differ from the version pinned by the migration.
Ideas for a solution:
- Keep existing
packageManagerordevEngines.packageManagerdeclarations. - Leave projects without either declaration unpinned (but warn!)
- Use the package manager resolved from the lockfile only for migration capability checks.
- Keep explicit version pinning as a separate action (
vp env pin)
Reproduction
Steps to reproduce
No response
System Info
-
Used Package Manager
npm
Logs
-
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
- Lingua principale
- Rust
- Stelle
- 5.8k
- Fork
- 267
- Merge medio
- 21h 16m
- PR unite (30g)
- 147
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi 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
-
pending triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
voidzero-dev/vite-plus#2801 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
voidzero-dev/vite-plus#2097 · 10 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
vp check --no-lint still reports type-aware lint rules and ignores their disable commentsForse già presa @camc314 l’ha presa oggi. Aperta
voidzero-dev/vite-plus#2830 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
vp run: task output forwarding aborts with EAGAIN when stdout turns non-blocking mid-run (follow-up to #2165)Forse già presa @naokihaba l’ha presa 1 giorno fa. Apertabug
voidzero-dev/vite-plus#2824 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
voidzero-dev/vite-plus#2811 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di voidzero-dev/vite-plus
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
trailofbits/dylint#2107 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cli bug good first issue priority:medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
rtk-ai/rtk#4289 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
arrays_zip with two same-named inputs fails with "ArrowArray struct has 2 children (expected 1)"Apertabug requires-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/datafusion-comet#6251 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug false-positive harper-core linting
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Automattic/harper#4471 ·
I maintainer di solito rispondono entro 1 giorno