[Bug]: install passes a leftover forcedl value instead of each server's force setting
维护者通常 1 天内回复
已经有一个关联 PR 被合并了。
- #5190 来自 @borzaka —— 已合并
评估
调研方向
Read lgsm/modules/install_server_files.sh around line 233 and check the force= assignments in its server branches. The issue identifies the mismatch: the fn_fetch_file call passes ${forcedl} instead of ${force}. Confirm the expected argument with the reported samp reproduction; done means the call passes the branch’s noforce setting.
由索引模型根据 Issue 内容生成。
描述
Severity
severity: low
Reproducibility
reproducible: unable
Regression
regression: no
Affects latest release
latest-release: yes
User story
As a LinuxGSM maintainer, I want fn_install_server_files to pass the download setting each server defines, so that install does not depend on a value left over from an earlier download.
Script name
all servers installed by fn_install_server_files
Game
Other
Linux distro
Other
Command
command: install
Expected behavior
fn_fetch_file gets the force="noforce" value that each of the 27 server branches in fn_install_server_files sets.
Actual behavior
The call in lgsm/modules/install_server_files.sh line 233 passes ${forcedl}, which no branch sets, so it gets whatever the last fn_fetch_file call left in the global forcedl. Today that is always noforce: the module is loaded by fn_fetch_module just before, and the downloads in between (EULA, SteamCMD) also pass noforce. There is no visible effect today.
Further information
85290d6b ("corrected download settings", 2017-05-14) changed the argument in the call from ${force} to ${forcedl} but did not rename the force= assignments, and it has stayed that way since (the file later moved from lgsm/functions to lgsm/modules). The bug is latent: if a download that passes "forcedl" (for example install_config.sh or an update module) ever ran just before this function, install would download the archive again despite force="noforce". The fix is to pass ${force} in the call; force is not used anywhere else in lgsm/.
Pre-checks
- I ran update and validate before reporting this issue.
Not applicable: found by code review of develop, not on a live server.
Relevant log output
# fn_install_server_files with shortname=samp and forcedl="forcedl" left from an earlier call,
# fn_fetch_file stubbed to print its 9th argument
develop (b3d24bec): fn_fetch_file arg9 (forcedl) = forcedl
Steps to reproduce
- Source
fn_install_server_filesfromlgsm/modules/install_server_files.shwithfn_fetch_file,fn_dl_extractandfn_clear_tmpstubbed. - Set
shortname=sampandforcedl="forcedl", then callfn_install_server_files. fn_fetch_filereceivesforcedlinstead of the branch'snoforce.
🤖 Generated with Claude Code
- 主要语言
- Shell
- 星标
- 4.9k
- 派生
- 870
- 平均合并
- 18 小时 44 分钟
- 30 天内合并 PR
- 148
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GameServerManagers/LinuxGSM 的其他 Issue
-
command: start distro: Debian engine: null game: Teamspeak 3 reproducible: always severity: low type: bug
难度 2/5 1-3 小时 新手友好度 76/100
GameServerManagers/LinuxGSM#5193 ·
维护者通常 1 天内回复
-
command: start engine: unreal4 game: The Front reproducible: always severity: medium type: bug
难度 1/5 1 小时以内 新手友好度 86/100
GameServerManagers/LinuxGSM#5185 ·
维护者通常 1 天内回复
-
bug(ins): server fails to start, srcds_run has CRLF line endings and needs bash可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭distro: Ubuntu engine: source game: Insurgency status: fixed in develop
难度 2/5 1-3 小时 新手友好度 72/100
GameServerManagers/LinuxGSM#5153 ·
维护者通常 1 天内回复
-
[Bug]: cs2server ignores the GSLT entered during install可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭command: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
难度 2/5 1-3 小时 新手友好度 82/100
GameServerManagers/LinuxGSM#5106 ·
维护者通常 1 天内回复
-
[Bug]: A failed command exits with 0 when core_exit.sh is downloaded on exit可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭command: start distro: Debian engine: null game: Teamspeak 3 info: tmux reproducible: always severity: low status: fixed in develop type: bug
难度 3/5 1-2 天 新手友好度 35/100
GameServerManagers/LinuxGSM#5191 ·
维护者通常 1 天内回复
查看 GameServerManagers/LinuxGSM 的全部 Issue
相似的 Issue
-
Isha Narula未关闭
难度 1/5 1 小时以内 新手友好度 72/100
dataplat/DataSpeakers#178 ·
-
[BUG] mo clean deletes Cypress test runner binaries in ~/Library/Caches/Cypress可能已有人在做 @viniciusdsandrade 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
-
enhancement security severity:low
难度 2/5 1-3 小时 新手友好度 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
mattabate/life-distributable#153 ·
维护者通常 1 天内回复