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

Support npm dist-tags in `vp env pin` (e.g. `pnpm@latest-10`)

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

I maintainer di solito rispondono entro 1 giorno

@liangmiQwQ ci sta già lavorando.

Dal 13/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement

Description

I want to pin the latest stable release of a package manager major, e.g. pnpm 10. pnpm publishes this as the latest-10 dist-tag:

$ npm view pnpm dist-tags
latest-10: 10.34.6   # stable
next-10:   10.34.7   # newer, not yet promoted to latest-10

vp env pin pnpm@10 can't express this. It picks the highest semver match (10.34.7, the next channel), or a cached version. Dist-tags aren't accepted:

$ vp env pin pnpm@latest-10
Error: Install error: Invalid argument: invalid pnpm version "latest-10": expected semver 'major.minor.patch' or a semver range

Suggested solution

Treat a non-semver version as a dist-tag and resolve it via the registry, then pin the exact version. latest already works this way (source), so this generalizes it to any tag.

$ vp env pin pnpm@latest-10
✓ Pinned package manager to [email protected]

Alternative

vp env pin "pnpm@$(npm view pnpm@latest-10 version)"

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.
Lingua principale
Rust
Stelle
6k
Fork
274
Merge medio
1g 11h
PR unite (30g)
203

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.