Skip to content

Bug: plugin install with repo-url:path syntax fails — entire string passed to git clone #2464

@liujacky2001

Description

@liujacky2001

Description

The copilot plugin install <repo-url>:<plugin-path> syntax does not work. The CLI passes the entire string (including the :path suffix) to git clone as a single URL, which fails with HTTP 400.

Steps to Reproduce

copilot plugin install https://msazure@dev.azure.com/msazure/One/_git/Azure-Compute-Pilotfish-Zenith:plugins/zenith-postmortem-toolkit

Expected Behavior

The CLI should split the argument at the : separator into:

  • Repo URL: https://msazure@dev.azure.com/msazure/One/_git/Azure-Compute-Pilotfish-Zenith
  • Plugin path: plugins/zenith-postmortem-toolkit

Then clone the repo and install from the specified subfolder.

Actual Behavior

The entire string is passed as the git clone URL:

Failed to install plugin: Failed to fetch git plugin from the provided URL.
Details: Error: Command failed: git clone --depth 1 --progress
  https://***:***@dev.azure.com/msazure/One/_git/Azure-Compute-Pilotfish-Zenith:plugins/zenith-postmortem-toolkit
  C:\Users\qiliu\AppData\Local\copilot\marketplaces\...
fatal: unable to access '...': The requested URL returned error: 400

Workarounds

  • Use marketplace-based install (plugin marketplace add then plugin install name@marketplace)
  • Use local path install (plugin install ./plugins/zenith-postmortem-toolkit)

Environment

  • Copilot CLI version: 1.0.15
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:installationInstalling, updating, versioning, PATH setup, and binary distributionarea:pluginsPlugin system, marketplace, hooks, skills, extensions, and custom agents

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions