`pkgx --update`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pkgxdev/pkgx
-
`--query` flag gone Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Tutte le issue di pkgxdev/pkgx
Issue simili
-
Browser (wasm) relay client cannot connect to relays whose URL has a trailing-dot FQDN hostname Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
n0-computer/iroh#4550 ·
-
impl detach for native Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
paritytech/zombienet-sdk#591 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
farion1231/cc-switch#7638 · 1 commento ·
-
onnx-ir re-exports ModelProto and GraphProto but not NodeProto, AttributeProto and AttributeType Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100