Skip to content

Read plugin index files that Bundler 4.1 writes - #10077

Merged
hsbt merged 2 commits into
4.0from
read-41-plugin-index-on-40
Nov 17, 2026
Merged

hsbt merged 2 commits into
4.0from
read-41-plugin-index-on-40

Conversation

@hsbt

@hsbt hsbt commented Nov 16, 2026

Copy link
Copy Markdown
Member

Bundler 4.0 cannot use a plugin index that Bundler 4.1 has written, for example after BUNDLED WITH switches a project between the two. An empty section such as commands: {} for a plugin that only registers hooks raises TypeError in commands that load the index, such as bundle plugin list and bundle install. A plugin installed in the plugin root is skipped with a warning that its paths don't exist, because Bundler 4.1 records them relative to that root.

Bundler::Plugin::Index#load_index now treats a section that is not a hash as empty, as #10076 does on master, and expands relative paths from the plugin root, as Bundler 4.1 does. See #10073.

Generated with Claude Code

hsbt and others added 2 commits November 17, 2026 06:39
Bundler 4.1 writes an empty section of the plugin index, such as `commands` of a plugin that only registers hooks, as `{}`. The serializer here reads that as the string "{}", and loading the index raised TypeError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bundler 4.1 records the paths of a plugin installed in the plugin root relative to it. Bundler 4.0 looked them up from the current directory, warned that they don't exist, and skipped the plugin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hsbt
hsbt merged commit 900f78e into 4.0 Nov 17, 2026
91 checks passed
@hsbt
hsbt deleted the read-41-plugin-index-on-40 branch November 17, 2026 05:26
@hsbt hsbt mentioned this pull request Nov 17, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant