Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

[Installer] Load plugin files from path gems #5702

Merged
merged 3 commits into from Jun 16, 2017

Conversation

segiddins
Copy link
Member

Closes #5429 .

Because RubyGems doesn't know about path gems before we install, we need to manually load the plugin files for the path gems we're installing. This is basically copying the logic RG uses, but scoped only to those gems that we're entirely responsible for.


requested_path_gems = @definition.requested_specs.select {|s| s.source.is_a?(Source::Path) }
path_plugin_files = requested_path_gems.map do |spec|
spec.matches_for_glob("rubygems_plugin#{Bundler.rubygems.suffix_pattern}")
Copy link
Member Author

Choose a reason for hiding this comment

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

failing on RG < 1.8

@segiddins
Copy link
Member Author

This ought to pass now

@segiddins
Copy link
Member Author

Fixed

@indirect
Copy link
Member

@bundlerbot r+

@bundlerbot
Copy link
Collaborator

📌 Commit ce0bf59 has been approved by indirect

@bundlerbot
Copy link
Collaborator

⌛ Testing commit ce0bf59 with merge 72e20ac...

bundlerbot added a commit that referenced this pull request Jun 15, 2017
[Installer] Load plugin files from path gems

Closes #5429 .

Because RubyGems doesn't know about path gems before we install, we need to manually load the plugin files for the path gems we're installing. This is basically copying the logic RG uses, but scoped only to those gems that we're entirely responsible for.
@bundlerbot
Copy link
Collaborator

☀️ Test successful - status-travis
Approved by: indirect
Pushing 72e20ac to master...

@bundlerbot bundlerbot merged commit ce0bf59 into master Jun 16, 2017
@colby-swandale colby-swandale deleted the seg-load-path-gem-plugins branch June 16, 2017 01:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants