github / github/copilot-cli

Feature: Use git sparse checkout for marketplace clone to reduce disk usage

Aperta
#2,463 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area:plugins
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

## Summary

When adding a plugin marketplace via `/plugin marketplace add `, the CLI clones the **entire repository** with `git clone --depth 1`. For repos that contain more than just plugins (e.g., source code, docs, prototypes), this wastes significant disk space.

**Example:**
- Full clone: **138 MB**
- Actual files needed (`.github/plugin/` + `plugins/`): **~117 KB** (0.9%)

## Proposal

Use git sparse checkout when cloning marketplace repos so that only the plugin-related files are fetched:
1. `.github/plugin/marketplace.json` — the marketplace manifest
2. Paths listed in `marketplace.json` `plugins[].source` entries — the actual plugin folders

## Environment

- Copilot CLI version: 1.0.15
- OS: Windows 11

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start at the `/plugin marketplace add ` command entry point and trace the current `git clone --depth 1` flow. Read how `marketplace.json` is loaded and how `plugins[].source` paths are resolved. Done means marketplace repositories retain the manifest and listed plugin folders while avoiding unrelated files, including on Windows.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
git, shell
Ambito
cli, performance
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.