Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

install.sh: asset matcher still greps for CommandCodeAI/gui — Linux/macOS installs can never resolve a release

オープン 初心者向け
#107 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CommandCodeAI/desktop のほかの issue

CommandCodeAI/desktop の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。