Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#4,994 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@dgibbs64 đang làm issue này rồi.

Từ ngày 14/10/2026.

  • #5037 của @dgibbs64 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, shell
Lĩnh vực
cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Shell
Star
4.9k
Fork
870
Merge trung bình
14 giờ 50 phút
Pull request đã merge (30 ngày)
109

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameServerManagers/LinuxGSM

Tất cả issue của GameServerManagers/LinuxGSM

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.