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 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
astral-sh/python-build-standalone#1293 ·
-
package-update
難度 1/5 1 小時以內 新手友好度 90/100
oSoWoSo/vOid_Community_repOsitory#185 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
carbon-language/carbon-lang#7821 ·