fix: use relative path for plugin source to avoid redundant GitHub clone#13
Open
rexlwt wants to merge 1 commit into
Open
fix: use relative path for plugin source to avoid redundant GitHub clone#13rexlwt wants to merge 1 commit into
rexlwt wants to merge 1 commit into
Conversation
When a user adds the Webwright repo as a local marketplace
(`/plugin marketplace add /path/to/Webwright`), the plugin source
`{"source":"github","repo":"microsoft/Webwright"}` caused Claude Code
to attempt a second git clone from GitHub, which fails when SSH host
keys are not configured in the environment.
Using `"./"` as the plugin source tells Claude Code to use the already-
present marketplace directory as the plugin root, avoiding any network
request. This also works correctly for the GitHub marketplace path
(where the repo is cloned to cache) since the relative path resolves
to the same cached directory.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sourcein.claude-plugin/marketplace.jsonfrom{"source":"github"}to the relative path"./"Problem
When a user adds the repo as a local marketplace and runs
/plugin install webwright@webwright, Claude Code readsmarketplace.json, seessource: 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
git clone https://github.com/microsoft/Webwright /tmp/Webwright/plugin marketplace add /tmp/Webwright/plugin install webwright@webwright— should succeed without network calls/webwright:runis available in a new sessionGenerated with Claude Code