Bundler original_env.GEM_HOME
is incorrect if bundler version is trampolined
#7567
Labels
original_env.GEM_HOME
is incorrect if bundler version is trampolined
#7567
Describe the problem as clearly as you can
The value for
Bundler.original_env['GEM_HOME']
is incorrect in the following scenario:BUNDLED WITH
version found inGemfile.lock
is not installed in the Gem PathBUNDLE_PATH
(orBUNDLE_DEPLOYMENT
) is setbundle exec
The impact is that system gems can't be run with
Bundle.unbundled_X
, which is how the issue was first encountered.Did you try upgrading rubygems & bundler?
Yes
Post steps to reproduce the problem
Which command did you run?
What were you expecting to happen?
Expected output to be:
What actually happened?
Actual output is:
Other notes
I know of a couple workarounds, any of these fixes the issue:
BUNDLE_VERSION=system
BUNDLED WITH
version (ex:gem install bundler:2.4.0
)-rbundler/setup
instead ofbundle exec
(ex:ruby -rbundler/setup -e 'puts Bundler.original_env["GEM_HOME"]'
)If not included with the output of your command, run
bundle env
and paste the output belowEnvironment
Bundler Build Metadata
Bundler settings
The text was updated successfully, but these errors were encountered: