feat(core): report a clear error when the configured branch doesn't exist
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Shell
- スター
- 4.9k
- フォーク
- 870
- 平均マージ
- 17時間 33分
- マージ済み PR(30日)
- 104
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GameServerManagers/LinuxGSM のほかの issue
-
engine: source game: Team Fortress 2 game: Team Fortress 2 Classified info: docker info: steamcmd type: bug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
GameServerManagers/LinuxGSM#5094 ·
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 3/5 半日 初心者へのやさしさ 42/100
GameServerManagers/LinuxGSM#5048 ·
メンテナーはふだん 1 日以内に返信
-
engine: unity3d engine: unreal4 Epic game: 7 Days to Die game: ARK: Survival Evolved game: Rust info: dependency type: feature
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
GameServerManagers/LinuxGSM#5047 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
command: monitor type: feature
難易度 3/5 半日 初心者へのやさしさ 42/100
GameServerManagers/LinuxGSM#4995 ·
メンテナーはふだん 1 日以内に返信
-
command: console distro: Debian info: website regression: yes reproducible: always severity: medium type: bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
GameServerManagers/LinuxGSM#4962 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
GameServerManagers/LinuxGSM の issue をすべて見る
似ている issue
-
e2e-failure ready-to-code
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
redhat-developer/rhdh-plugin-export-overlays#4485 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
maintenance
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
fix(session-flow): redact.py misses bare sk-ant-oat01- tokens and stateless ghs_ tokens with dotsオープンneeds-human
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
melodic-software/claude-code-plugins#9026 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug raised-by:verifier
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
medici-finance/assay#4008 ·
メンテナーはふだん 1 日以内に返信
-
bug: `curl NAME` exports an unquoted, uninterpolated command that is not runnable対応中かも @dannyward630 が今日担当しました。 オープンbug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
yunaremaia/git-api#61 ·
メンテナーはふだん 1 日以内に返信