Skip to content

Fix ENAMETOOLONG plugin install error from self-referential source#29

Merged
jrenaldi79 merged 1 commit intomainfrom
claude/debug-plugin-install-error-7o4LI
Mar 26, 2026
Merged

Fix ENAMETOOLONG plugin install error from self-referential source#29
jrenaldi79 merged 1 commit intomainfrom
claude/debug-plugin-install-error-7o4LI

Conversation

@jrenaldi79
Copy link
Copy Markdown
Owner

Summary\n\n- Fix marketplace.json self-referential GitHub source that caused recursive caching and ENAMETOOLONG errors 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, but marketplace.json used a GitHub object source pointing back to itself. Claude Code would clone the repo into its cache, find the .claude-plugin/marketplace.json inside, and recursively clone again — creating harness-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

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
@jrenaldi79 jrenaldi79 merged commit 5427075 into main Mar 26, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants