install.sh: asset matcher still greps for CommandCodeAI/gui — Linux/macOS installs can never resolve a release
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 85/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- shell
- 领域
- build-system, cli
调研方向
该错误位于 install.sh 的第 52 行,其中 awk 模式硬编码了旧的仓库别名 'CommandCodeAI/gui'。修复方法是更新该模式以匹配当前仓库 'CommandCodeAI/desktop',或者更好的是使用现有的 REPOSITORY 变量。同时检查第 232 行是否有过时的 macOS 错误消息。使用 COMMANDCODE_INSTALL_DRY_RUN=1 运行脚本,以验证其能正确解析类似 'CommandCode-*-amd64.deb' 的资源名称。
由索引模型根据 Issue 内容生成。
描述
Bug: install.sh on main can never match a release asset, so macOS/Linux installs always fail with "No verified package was found in the 20 newest releases."
Root cause: REPOSITORY was corrected to CommandCodeAI/desktop, but the awk matcher inside read_asset_metadata() still hardcodes the old repo slug:
# install.sh:52
/"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/gui\/releases\/assets\// {
Every asset url in the current release JSON is .../repos/CommandCodeAI/desktop/..., so in_asset is never set and no artifact can resolve.
Minimal fix:
- /"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/gui\/releases\/assets\// {
+ /"url": "https:\/\/api.github.com\/repos\/CommandCodeAI\/desktop\/releases\/assets\// {
or better, interpolate the existing variable so it can’t drift again:
/"url": "https:\/\/api.github.com\/repos\/" repo "\/releases\/assets\//" # with -v repo="$REPOSITORY"
Also minor: install.sh:232 still fails Darwin:* with "The current macOS preview supports Apple silicon only", but Darwin:x86_64 is handled above it — the message is stale.
Suggested regression test: COMMANDCODE_INSTALL_DRY_RUN=1 ./install.sh asserting the script resolves a real asset name (e.g. CommandCode-*-amd64.deb) against the live release JSON.
Found while researching a fork — verified the matcher cannot hit the current release payload.
- 主要语言
- Shell
- 星标
- 80
- 派生
- 2
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CommandCodeAI/desktop 的其他 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/desktop#94 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
CommandCodeAI/desktop#66 · 1 条评论 · 2 个 reaction ·
-
bug
难度 4/5 3-5 天 新手友好度 35/100
CommandCodeAI/desktop#105 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 45/100
CommandCodeAI/desktop#104 ·
-
bug
难度 3/5 1-2 天 新手友好度 70/100
CommandCodeAI/desktop#103 ·
查看 CommandCodeAI/desktop 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
bug easy help wanted
难度 2/5 1-3 小时 新手友好度 75/100
lacs-project/sysknife#503 ·
-
help wanted kind/documentation
难度 2/5 1-3 小时 新手友好度 75/100
liquidmetal-dev/flintlock#1239 ·