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

kup ignores shell env settings, must pass env directly

Aperta
#108 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start in src/kup/main.py at the referenced line where GH_TOKEN is handled. Reproduce the difference between exporting GH_TOKEN before running kup install kore-rpc and prefixing the command with GH_TOKEN. Done means the exported environment variable is passed through so the GitHub request is authenticated and the rate-limit failure no longer occurs.

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

Descrizione

GitHub Rate limiting

Getting rate limited by GitHub, so passing GH_TOKEN (ref: https://github.com/runtimeverification/kup/blob/a72bf86a857e01539f161541aba76bbfb19f03cd/src/kup/__main__.py#L335C61-L335C69) into my terminal I must pass it directly to actually make an authenticated request

Failure
$ export GH_TOKEN=github_pat_(...)
$ kup install kore-rpc
warning: error: unable to download 'https://api.github.com/repos/runtimeverification/k/commits/HEAD': HTTP error 403

       response body:

       {"message":"API rate limit exceeded for 198.54.132.185. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}; using cached version
warning: error: unable to download 'https://api.github.com/repos/runtimeverification/evm-semantics/commits/HEAD': HTTP error 403
Successful
$ GH_TOKEN=github_pat_(...) kup install kore-rpc
 ⌛ Building 'kore-rpc' ...
 ✅ Successfully installed 'kore-rpc' version github:runtimeverification/haskell-backend/e50cdfc9943ad683ef7cd9917f7599f322a53b78#packages.aarch64-darwin.kore-rpc (master).
Lingua principale
Python
Stelle
10
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 runtimeverification/kup

Tutte le issue di runtimeverification/kup

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.