`copilot plugin marketplace add` should silently succeed if marketplace is already registered
Nessuno ha ancora preso questa issue.
- Lingua principale
- Shell
- Stelle
- 11.2k
- Fork
- 1.9k
- Merge medio
- 14h 16m
- PR unite (30g)
- 6
Descrizione
Describe the feature or problem you'd like to solve
copilot plugin marketplace add currently fails when the marketplace is already registered.
Example:
copilot plugin marketplace add https://github.com/DietrichGebert/ponytail
Failed to add marketplace: Error: Request plugins.marketplaces.add failed with message: Marketplace "ponytail" already registered
Proposed solution
If the target marketplace is already registered, treat it as a no-op and exit successfully (status code 0), ideally without printing an error.
Optional: print a non-error informational message (e.g., "Marketplace already registered") but still return 0.
Example prompts or workflows
- Re-running bootstrap/setup scripts across machines
- CI/devcontainer initialization where marketplace registration may already exist
- User reruns the same command and expects no failure for existing state
Expected Behaviour:
- Command is idempotent.
- "already registered" condition does not produce an error exit.
- Exit code is 0 for already-registered marketplaces.
Additional context
This issue report text was generated using GitHub Copilot.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia dal punto di ingresso del comando copilot plugin marketplace add e segui come viene gestito l’errore relativo a un marketplace esistente. Esegui nuovamente il comando con il marketplace ponytail, quindi verifica che un marketplace già registrato termini con il codice di stato 0 e non stampi alcun errore.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- shell
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 65/100