`pkgx --update`
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
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của pkgxdev/pkgx
-
`--query` flag gone Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Reduce installation dependencies Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Issue tương tự
-
bug github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
registrystack/registry-stack#1393 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
longbridge/gpui-kit#3223 ·
-
bug engine
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rocky-data/rocky#2181 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
oasisprotocol/oasis-sdk#2523 ·
-
[indexer] [QA] Add a focused test for the new NonRetryableError / assertSocketAlive() behavior. Đang mởbot:ai-assisted component:indexer QA-roadmap status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
midnightntwrk/midnight-indexer#1557 ·