Installer continues with empty version after 403 and builds invalid download URL

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
73/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, go, shell
領域
cli

調査の方向性

最新リリースを検索してダウンロード URL を構築するインストーラーのエントリーポイントを見つけてください。issue にはファイル名もテストも記載されていません。その検索処理を読み、リクエストが失敗したときにバージョンがどのように設定されるかを追い、その後、関連するインストーラーのチェックを実行してください。検索に失敗した場合に明確なエラーで停止するか、有効なリリースを使用し、空のバージョンを含む URL を決して生成しなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

The installer fails on macOS arm64 when it cannot fetch the latest release version. It then continues with an empty version and constructs an invalid download URL.

Environment

  • OS: macOS (Darwin)
  • Architecture: arm64
  • Install target: /Users/lime/.local/bin (the installer fell back because /usr/local/bin was not writable)

Logs

[INFO] Installing gemini-api CLI...
[INFO] No write access to /usr/local/bin, using /Users/lime/.local/bin instead
[INFO] Detected OS: Darwin
[INFO] Detected Architecture: arm64
[INFO] Installation directory: /Users/lime/.local/bin
curl: (56) The requested URL returned error: 403
[INFO] Latest version: 
[INFO] Downloading from: https://github.com/google-gemini/gemini-api-cli/releases/download//gemini-api_Darwin_arm64.tar.gz
curl: (56) The requested URL returned error: 404
[ERROR] Failed to download from https://github.com/google-gemini/gemini-api-cli/releases/download//gemini-api_Darwin_arm64.tar.gz

Expected behavior

If the latest-version lookup fails, the installer should stop with a clear error explaining the failed request, or retry/fall back to a valid release. It should not proceed with an empty version and a malformed download URL.

Additional context

The initial 403 appears to be from the request used to determine the latest release version. The subsequent 404 is a consequence of the empty version in the generated URL.

主要言語
Go
スター
3k
フォーク
219
平均マージ
2日 2時間
マージ済み PR(30日)
66

環境構築

はじめの一歩

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

google-gemini/gemini-api-cli のほかの issue

google-gemini/gemini-api-cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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