feat(core): report a clear error when the configured branch doesn't exist
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
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
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
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
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 GameServerManagers/LinuxGSM
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
GameServerManagers/LinuxGSM#4956 ·
I maintainer di solito rispondono entro 1 giorno
-
[iosserver] IOSoccer moved to a 64-bit server, srcds_run no longer existsForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaengine: source game: IOSoccer info: dependency info: query type: bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
GameServerManagers/LinuxGSM#5023 ·
I maintainer di solito rispondono entro 1 giorno
-
command: monitor type: feature
Difficoltà 3/5 Mezza giornata Idoneità per principianti 42/100
GameServerManagers/LinuxGSM#4995 ·
I maintainer di solito rispondono entro 1 giorno
-
command: console distro: Debian info: website regression: yes reproducible: always severity: medium type: bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
GameServerManagers/LinuxGSM#4962 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Security: game-server config values parsed via eval in info_game.sh - stored command injectionAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
GameServerManagers/LinuxGSM#4955 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di GameServerManagers/LinuxGSM
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 2 giorni
-
Installer computes steamid3 as -76561197960265728 when loginusers.vdf uses lowercase "timestamp"Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
[Bug]: armbian-firstlogin: preset Wi-Fi key with " or \ breaks netplan configForse già presa @jfcabral l’ha presa oggi. ApertaBug Good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
armbian/build#10995 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Update waterfox-bin to 6.7.6Apertapackage-update
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
oSoWoSo/vOid_Community_repOsitory#417 ·
I maintainer di solito rispondono entro 1 giorno