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

`pkgx --update`

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
rust
Lĩnh vực
cli

Hướng nghiên cứu

Start by tracing the CLI handling for package version requests and the cache lookup path, then reproduce the documented jq@1.6 and jq@1 scenarios. The work is done when pkgx --update jq@1 selects the newest cached-compatible or available jq@1 version while normal requests retain their current reuse behavior.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

pkgx does not provide a way to update already cached pkgs.

For example:

# prune cache
$ rm -rf ~/.pkgx

# cache an old version
$ pkgx jq@1.6

# reuses the cached version
$ pkgx jq

# reuses the cached version
$ pkgx jq@1

Except that, if you pass @latest, then it will update the cached pkg:

# downloads a newer version, like 1.8
$ pkgx jq@latest

However, not always I want the actual latest version. Sometimes I just want the latest version within a range, like @1.

It would be great if the --update flag from v1 was brought back so that:

# prune cache
$ rm -rf ~/.pkgx

# cache an old version
$ pkgx jq@1.6

# reuses the cached version
$ pkgx jq@1

# finds and use the latest jq@1
$ pkgx --update jq@1

I would use this feature in my dotfiles script that updates everything in my system.

What do you think?

Ngôn ngữ chính
Rust
Star
9.9k
Fork
1.4k
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 pkgxdev/pkgx

Tất cả issue của pkgxdev/pkgx

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.