github / github/copilot-cli

Plugin marketplace: add explicit update command and prevent shallow clone history accumulation

Đang mở
#2,488 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:installation area:plugins
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

Summary

Two minor feature gaps related to plugin marketplace management:

1. No explicit /plugin marketplace update command

Currently, the only way to update a marketplace is implicitly through /plugin marketplace browse, which triggers a git pull under the hood. This behavior is non-obvious and undocumented.

Current marketplace subcommands:

- /plugin marketplace add
- /plugin marketplace remove
- /plugin marketplace list
- /plugin marketplace browse

Suggestion: Add /plugin marketplace update (or update --all) as a dedicated subcommand so users can explicitly refresh marketplace catalogs without needing to browse.

2. Shallow clone history accumulates over time

When a marketplace is first added, it's cloned as a shallow clone (--depth 1). However, subsequent updates (triggered by browse) append new commits rather than re-shallowing. Over time, the local clone at ~\AppData\Local\copilot\marketplaces\\ grows
unbounded.

For a marketplace, only the latest state of the plugins/ directory matters — intermediate commit history is unnecessary.

Suggestion: Use git fetch --depth 1 (or equivalent) during updates to keep the clone minimal, rather than a standard git pull that accumulates history.

Impact

Neither issue is critical. Both are quality-of-life improvements — the first for discoverability, the second for disk efficiency on machines with many marketplaces or frequent updates.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng việc xác định phần xử lý subcommand /plugin marketplace và đường dẫn browse hiện đang thực hiện các bản cập nhật git. Theo dõi cách các bản sao clone của marketplaces trong thư mục marketplaces cục bộ được làm mới. Hoàn tất khi có một lệnh update tường minh và các lần update lặp lại chỉ giữ lại lịch sử nông, đồng thời bảo toàn trạng thái mới nhất của plugins/.

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

Đánh giá

Công nghệ
git, shell
Lĩnh vực
cli, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/100

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.