Webwright icon indicating copy to clipboard operation
Webwright copied to clipboard

fix: use relative path for plugin source to avoid redundant GitHub clone

Open rexlwt opened this issue 6 months ago • 0 comments

Summary

  • Change plugin source in .claude-plugin/marketplace.json from {"source":"github"} to the relative path "./"
  • Avoids a redundant git clone when the repo is already present as a local marketplace
  • Fixes install failures in environments without GitHub SSH host keys (e.g. fresh WSL installs)

Problem

When a user adds the repo as a local marketplace and runs /plugin install webwright@webwright, Claude Code reads marketplace.json, sees source: github, and attempts to clone from GitHub again — even though the files are already present. This fails without SSH host keys.

Solution

Using "./" as the plugin source tells Claude Code to use the already-present marketplace directory as the plugin root. Works for both local and GitHub marketplace paths.

Test plan

  • [ ] Clone locally: git clone https://github.com/microsoft/Webwright /tmp/Webwright
  • [ ] /plugin marketplace add /tmp/Webwright
  • [ ] /plugin install webwright@webwright — should succeed without network calls
  • [ ] Verify /webwright:run is available in a new session

Generated with Claude Code

rexlwt avatar May 27 '26 07:05 rexlwt