Petr Skocik
Petr Skocik

Reputation: 60143

Adding a customized version of bundler as a dependency in a Gemfile

How can I make a typical gem setup (as generated by bundle gem) run a customize version of bundler?

I've added:

#group :development do
  gem "bundler", github: 'pjump/bundler'
#end

to my Gemfile (with or without the the hash symbols), and bundle install works, but bundle exec keeps telling me that the bundler repo is not yet checked out. The only way I can make it work for now is by installing the customized version with gem istall and not specifying a bundler dependency in the package at all.

Upvotes: 0

Views: 91

Answers (1)

Tim Moore
Tim Moore

Reputation: 9492

Bundler isn't able to bootstrap itself from a Gemfile, so adding a customized version to your Gemfile will not do what you want. Installing it with gem install is the correct solution (or running rake install from the forked Bundler repo directory, which builds and installs the gem in one step).

Upvotes: 1

Related Questions