Skip to content

Cannot update a plugin that was installed via .github\copilot\settings.json #1884

@DLehenbauer

Description

@DLehenbauer

Describe the bug

When a plugin is automatically installed via the new support for .github\copilot\settings.json, that plugin cannot be upgraded with /plugin upgrade.

Copilot says the installed failed because it is unable to find the marketplace, even though the marketplace and plugin are both browsable with /plugin marketplace browse.

(I suspect that someone just forgot to merge the new project settings.json with the user settings for the '/plugin upgrade' path.)

Affected version

GitHub Copilot CLI 1.0.2.

Steps to reproduce the behavior

  1. Add a marketplace and plugin via .github\copilot\settings.json:
{
  "marketplaces": {
    "my-marketplace": {
      "source": { "source": "url", "url": "https://github.com/me/my-marketplace.git" }
    }
  },
  "enabledPlugins": {
    "test-plugin@my-marketplace": true
  }
}
  1. Restart copilot.

  2. Verify the marketplace was registered:

> /plugin marketplace list

...
Your Marketplaces:

  • my-marketplace
    Source: URL: https://github.com/me/my-marketplace.git
  1. Verify the plugin was installed:
> /plugin list

Installed Plugins:

  • test-plugin@my-marketplace v1.0.0
  1. Verify the plugin is browsable in the marketplace:
> /plugin marketplace browse my-marketplace

Plugins in "my-marketplace":
  • test-plugin
    A test plugin.
  1. Attempt to upgrade plugin
> /plugin update test-plugin@my-marketplace

Failed to update plugin: Marketplace "my-marketplace" not found

Expected behavior

Plugin is successfully upgraded to version 1.0.1.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions