Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1163076 - Bundler can't see its dependencies after Bundler.setup [rhel-7]
Bundler can't see its dependencies after Bundler.setup [rhel-7]
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rubygem-bundler (Show other bugs)
7.2
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Vít Ondruch
Iveta Wiedermann
:
Depends On: 1163039
Blocks: 1191020
  Show dependency treegraph
 
Reported: 2014-11-12 05:45 EST by Josef Stribny
Modified: 2016-01-04 00:54 EST (History)
9 users (show)

See Also:
Fixed In Version: rubygem-bundler-1.7.8-2.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1163039
Environment:
Last Closed: 2015-11-18 22:52:07 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2180 normal SHIPPED_LIVE Moderate: rubygem-bundler and rubygem-thor security, bug fix, and enhancement update 2015-11-19 02:52:05 EST

  None (edit)
Description Josef Stribny 2014-11-12 05:45:39 EST
+++ This bug was initially created as a clone of Bug #1163039 +++

Description of problem:

Bundler can't see its dependencies after Bundler.setup.

If thor or net-http-persistent are already in memory, Bundler can reuse them just fine, but if Bundler locks the Gemfile and those libs are not already loaded, Bundler doesn't see them even though they are its dependencies. 

Originally these dependencies are vendored inside the gem, but we removed them in Fedora. For Bundler to function as expected and designed by upstream we should most likely symlink the originally vendored libs to system-installed RubyGems.

I am including a simple reproducer for rawhide although I came across this in the real usecase when Vagrant couldn't download remote plugins, because Bundler (which Vagrant uses underneath) uses net-http-persistent for that.


How reproducible:

$ bundle init
$ irb
> require 'bundler'
> Bundler.setup
> require 'bundler/vendored_thor'
LoadError: cannot load such file -- thor
	from /usr/share/gems/gems/bundler-1.7.4/lib/bundler/vendored_thor.rb:7:in `require'
	from /usr/share/gems/gems/bundler-1.7.4/lib/bundler/vendored_thor.rb:7:in `<top (required)>'
	from (irb):5:in `require'
	from (irb):5
	from /usr/bin/irb:11:in `<main>'
Comment 6 errata-xmlrpc 2015-11-18 22:52:07 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-2180.html

Note You need to log in before you can comment on or make changes to this bug.