Skip to content

fix(plugin): sync plugin.json version to 0.1.1 to stop recursive cache dirs#455

Merged
Alan-TheGentleman merged 1 commit into
mainfrom
fix/plugin-version-sync-217
May 29, 2026
Merged

fix(plugin): sync plugin.json version to 0.1.1 to stop recursive cache dirs#455
Alan-TheGentleman merged 1 commit into
mainfrom
fix/plugin-version-sync-217

Conversation

@Alan-TheGentleman
Copy link
Copy Markdown
Collaborator

Summary

Closes #217 — installing the plugin created infinitely nested empty cache dirs (~/.claude/plugins/cache/engram/0.1.0/engram/0.1.0/...).

Change

Sync plugin/claude-code/.claude-plugin/plugin.json version 0.1.00.1.1 to match marketplace.json. The version drift drove repeated re-downloads into versioned cache directories. Added TestPluginVersionsMatch to catch future drift.

What this PR deliberately does NOT do

An earlier exploration switched marketplace.json source to the git-subdir object form. That was dropped: git-subdir was already reverted once in this repo (commit 54a6c52 — "Claude Code doesn't recognize it via /plugins"), and upstream claude-plugins-official#585 reports it breaks installs on Claude Code < v2.1.69. The source stays as the relative path. If sparse-clone is wanted later, it should be a separate, deliberately-scoped change with a minimum-client-version expectation.

Test plan

go test ./plugin/ -run TestPluginVersionsMatch passes; both manifests parse as valid JSON.

Copilot AI review requested due to automatic review settings May 29, 2026 12:15
@Alan-TheGentleman Alan-TheGentleman added the type:bug Bug fix label May 29, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Claude Code plugin version drift by aligning the bundled plugin.json version with the marketplace manifest, preventing repeated cache re-download behavior described in #217.

Changes:

  • Updates Claude Code plugin manifest version from 0.1.0 to 0.1.1.
  • Adds a Go test that parses both manifests and verifies the marketplace entry version matches the plugin manifest version.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
plugin/claude-code/.claude-plugin/plugin.json Syncs plugin version with marketplace metadata.
plugin/assets_test.go Adds manifest parsing structs and TestPluginVersionsMatch regression coverage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Alan-TheGentleman Alan-TheGentleman merged commit 2a36503 into main May 29, 2026
9 checks passed
@Alan-TheGentleman Alan-TheGentleman deleted the fix/plugin-version-sync-217 branch May 29, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engram creates recursive empty folders in cache

2 participants