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

Đang mở Phù hợp với người mới
#247 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
73/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, go, shell
Lĩnh vực
cli

Hướng nghiên cứu

Tìm điểm vào của trình cài đặt thực hiện việc tra cứu bản phát hành mới nhất và tạo URL tải xuống; issue không nêu tên tệp hay bài kiểm tra. Đọc phần tra cứu đó và theo dõi cách phiên bản được đặt khi một yêu cầu thất bại, sau đó chạy các bước kiểm tra trình cài đặt có liên quan. Hoàn thành khi việc tra cứu thất bại sẽ dừng với lỗi rõ ràng hoặc sử dụng một bản phát hành hợp lệ, và không bao giờ tạo URL có phiên bản rỗng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
3k
Fork
219
Merge trung bình
2 ngày 2 giờ
Pull request đã merge (30 ngày)
66

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của google-gemini/gemini-api-cli

Tất cả issue của google-gemini/gemini-api-cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.