Fix ENAMETOOLONG plugin install error from self-referential source#29
Merged
jrenaldi79 merged 1 commit intomainfrom Mar 26, 2026
Merged
Conversation
The marketplace.json plugin source used {"source": "github", "repo":
"jrenaldi79/harness-engineering"} which points back to the same repo that
hosts the marketplace. This caused Claude Code to recursively clone the repo
into its own cache directory (harness-engineering/1.0.0/harness-engineering/
1.0.0/...) until the path exceeded filesystem limits.
Fix: change the source to a relative path ("./") since the plugin lives at
the marketplace root. Also add self-referential source detection to the
marketplace schema test and a cache recursion check to the E2E install test.
https://claude.ai/code/session_01JQrEpoK2PjaQ55CTFkHxy6
2 tasks
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\n\n- Fix
marketplace.jsonself-referential GitHub source that caused recursive caching andENAMETOOLONGerrors during plugin install\n- Change plugin source from{\"source\": \"github\", \"repo\": \"jrenaldi79/harness-engineering\"}to\"./\"(relative path)\n- Add self-referential source detection to marketplace schema test\n- Add cache recursion nesting check to E2E install test\n\n## Root Cause\n\nThe marketplace and plugin lived in the same repo, butmarketplace.jsonused a GitHub object source pointing back to itself. Claude Code would clone the repo into its cache, find the.claude-plugin/marketplace.jsoninside, and recursively clone again — creatingharness-engineering/1.0.0/harness-engineering/1.0.0/...until the path exceeded filesystem limits.\n\n## Test plan\n\n- [x] Marketplace schema test passes (227/227 unit tests green)\n- [x] Schema test now detects self-referential GitHub sources\n- [x] Schema test now accepts relative path strings (\"./\")\n- [ ] Users clear cache (rm -rf ~/.claude/plugins/cache/harness-engineering) and reinstall plugin\n\nhttps://claude.ai/code/session_01JQrEpoK2PjaQ55CTFkHxy6