Skip to content

Commit f868e59

Browse files
hsbtclaude
andcommitted
Document single-thread assumption of @gemfile_parse
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent d9ccf28 commit f868e59

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bundler/lib/bundler/plugin.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ class UnknownSourceError < PluginError; end
1717
class PluginInstallError < PluginError; end
1818

1919
PLUGIN_FILE_NAME = "plugins.rb"
20+
21+
# Module-level flag set while .gemfile_install parses the Gemfile and
22+
# consulted by .from_lock to substitute plugin sources with
23+
# UnloadedSource. It relies on definitions being built one at a time in
24+
# a single thread; if they are ever built concurrently or reentrantly,
25+
# this needs to be replaced by explicit state passed down to the
26+
# lockfile parser.
2027
@gemfile_parse = false
2128

2229
module_function

0 commit comments

Comments
 (0)