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

feat(core): report a clear error when the configured branch doesn't exist

Aperta
#4,994 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, shell
Ambito
cli

Direzione di ricerca

The branch is read from githubbranch or LGSM_GITHUBBRANCH, and bootstrap and update-lgsm are the places the check would run; the payload names no specific files, so locate the download helpers by searching for the GitHub fallback logic. Done means one branch-existence check per run that fails with the requested message on a 404 only, while timeouts, 429 and 5xx keep the existing fallback. Confirm the design with maintainers before writing code, since the issue reads as a proposal rather than a settled fix.

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

Descrizione

type: feature

Problem

If the configured branch (githubbranch, or LGSM_GITHUBBRANCH) doesn't exist on githubuser/githubrepo, for example after a typo or once a feature branch has been deleted after merging, LinuxGSM's module downloads fail with generic download errors. The real cause isn't reported.

Proposal

Check once, during bootstrap and in update-lgsm, that the branch exists, and fail with a clear message if it doesn't:

Branch "<branch>" not found on <githubuser>/<githubrepo>
  • Check once per run, not on every file download.
  • Use a connect timeout, like the existing repo selection (--connect-timeout 3).
  • Treat only a 404 as "branch missing". Other errors (timeouts, 429, 5xx) should keep the current GitHub/Bitbucket fallback.
  • Fail clearly rather than silently switching to master, so nobody ends up on code they didn't choose.

Replaces the draft #4170 (closed): it had bugs, including a sed -i ...;q in update-lgsm that would have cut the game server script down to one line, and it was 486 commits behind develop.

Lingua principale
Shell
Stelle
4.9k
Fork
863
Merge medio
1g 16h
PR unite (30g)
45

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 GameServerManagers/LinuxGSM

Tutte le issue di GameServerManagers/LinuxGSM

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.