diff options
author | Michael Fellinger <michael.fellinger@iohk.io> | 2020-04-06 15:31:18 +0200 |
---|---|---|
committer | Michael Fellinger <michael.fellinger@iohk.io> | 2020-04-06 15:31:18 +0200 |
commit | b285fa07d521fabc7250cd9529af03879b0a1b93 (patch) | |
tree | 64ebd542d1c6418fb5a7ac9f512b315ec17b0180 | |
parent | f92600b406982e871dcd28ca0259357f57fa562b (diff) |
set GEM_HOME via Gem.paths
-rw-r--r-- | pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb b/pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb index 1dfeaadf6500..2bf9d84caa06 100644 --- a/pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb +++ b/pkgs/development/ruby-modules/bundled-common/gen-bin-stubs.rb @@ -35,7 +35,9 @@ ENV["BUNDLE_GEMFILE"] = #{gemfile.dump} ENV.delete 'BUNDLE_PATH' ENV['BUNDLE_FROZEN'] = '1' -$LOAD_PATH.unshift #{bundler_path.dump} + "/lib" +Gem.paths = { 'GEM_HOME' => #{bundle_path.dump} } + +$LOAD_PATH.unshift #{File.join(bundler_path, "/lib").dump} require 'bundler' Bundler.setup(#{groups.map(&:dump).join(', ')}) |