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

`pkgx --update`

Aperta
#1,267 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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?

Lingua principale
Rust
Stelle
9.9k
Fork
1.4k
Merge medio
1g 17h
PR unite (30g)
1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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

Tutte le issue di pkgxdev/pkgx

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.