github / github/copilot-cli

`copilot plugin marketplace add` should silently succeed if marketplace is already registered

Offen
#4,777 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

triage
Vorherrschende Sprache
Shell
Sterne
11.2k
Forks
1.9k
Ø Merge
14 Std. 16 Min.
Gemergte PRs (30 T.)
6

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne am Einstiegspunkt des Befehls copilot plugin marketplace add und verfolge, wie der Fehler für einen bereits vorhandenen Marketplace behandelt wird. Führe den Befehl anschließend mit dem ponytail-Marketplace erneut aus und überprüfe dann, dass ein bereits registrierter Marketplace mit Statuscode 0 beendet wird und keinen Fehler ausgibt.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
shell
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
65/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.