`copilot plugin marketplace add` should silently succeed if marketplace is already registered
还没有人认领这个 Issue。
评估
调研方向
从 copilot plugin marketplace add 命令的入口点开始,跟踪现有 marketplace 错误的处理方式。使用 ponytail marketplace 重新运行该命令,然后验证已注册的 marketplace 是否以状态码 0 退出且不打印错误。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/copilot-cli 的其他 Issue
-
triage
难度 2/5 1-3 小时 新手友好度 78/100
github/copilot-cli#4909 ·
-
triage
难度 2/5 1-3 小时 新手友好度 76/100
github/copilot-cli#4906 ·
-
triage
难度 2/5 1-3 小时 新手友好度 72/100
github/copilot-cli#4848 ·
-
area:agents area:mcp
难度 2/5 1-3 小时 新手友好度 72/100
github/copilot-cli#4729 ·
-
area:sessions
难度 2/5 1-3 小时 新手友好度 72/100
github/copilot-cli#4712 ·
查看 github/copilot-cli 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
conda-forge/nccl-feedstock#166 ·
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
pop-os/plymouth-theme#43 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
hykilpikonna/hyfetch#545 ·
-
on hold T: core-bug
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 1/5 1 小时以内 新手友好度 92/100