install.sh: asset matcher still greps for CommandCodeAI/gui — Linux/macOS installs can never resolve a release
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 85/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ệ
- shell
- Lĩnh vực
- build-system, cli
Hướng nghiên cứu
Lỗi nằm trong install.sh tại dòng 52, nơi mẫu awk mã hóa cứng slug kho lưu trữ cũ 'CommandCodeAI/gui'. Cách sửa là cập nhật mẫu để khớp với kho lưu trữ hiện tại 'CommandCodeAI/desktop' hoặc, tốt hơn, sử dụng biến REPOSITORY có sẵn. Đồng thời kiểm tra dòng 232 xem có thông báo lỗi macOS lỗi thời không. Chạy tập lệnh với COMMANDCODE_INSTALL_DRY_RUN=1 để xác minh rằng nó giải quyết được tên tài sản như 'CommandCode-*-amd64.deb'.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 80
- Fork
- 2
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommandCodeAI/desktop
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/desktop#94 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CommandCodeAI/desktop#66 · 1 bình luận · 2 reaction ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
CommandCodeAI/desktop#105 ·
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
CommandCodeAI/desktop#104 ·
-
bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 70/100
CommandCodeAI/desktop#103 ·
Tất cả issue của CommandCodeAI/desktop
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#156 ·
-
Priority/High ready-for-agent Severity/Major Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
comp/cli P3 type/docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NousResearch/hermes-agent#119756 · 1 bình luận ·
-
comp: build/pipeline type: bug version: current (v17+)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
angular/angularfire#3766 ·
-
out-of-date
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
CachyOS/CachyOS-PKGBUILDS#1903 ·