Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#3,034 0 bình luận 3 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@liangmiQwQ đang làm issue này rồi.

Từ ngày 13/10/2026.

  • #3047 của @liangmiQwQ — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.
Ngôn ngữ chính
Rust
Star
6k
Fork
274
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
206

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của voidzero-dev/vite-plus

Tất cả issue của voidzero-dev/vite-plus

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.