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

Migration pins lockfile-only package managers and can break CI

Aperta
#2,816 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, rust
Ambito
ci-cd, tooling

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

pending triage
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 packageManager or devEngines.packageManager declarations.
  • 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
Lingua principale
Rust
Stelle
5.8k
Fork
267
Merge medio
21h 16m
PR unite (30g)
147

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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.