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

Auto-retry mechanism for download failures

Aperta
#1,185 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Start by tracing the download path used by pkgx install when PKGX_DIST_URL points to an internal mirror; the issue names no files or tests. Done means transient download failures retry automatically without retrying unrelated command failures, with behavior that covers the reported mirror/cache case.

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

Descrizione

I got to admit: https://dist.pkgx.dev has been running rock-solid, and I don't even remember a situation where it caused my CI/CD pipelines to fail.

However, I want to setup my own internal mirror/cache so that I don't need to download so frequently from https://dist.pkgx.dev, using PKGX_DIST_URL.

The problem is: my own internal mirror/cache is not as strong as https://dist.pkgx.dev and often hiccups like break downloads in the middle.

It would be awesome if pkgx implemented some kind of auto retrying mechanism to improve resiliency of pipelines.

Right now, my solution for it is using retry:

$ retry --tries=5 --sleep=15s -- pkgx install openjdk@21
$ retry --tries=5 --sleep=15s -- java --version

But it's bad because:

  1. It retries for failures beyond download failures
  2. I have to have this extra tool installed
  3. Commands are a lot more verbose
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.