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

Bundler::ORIGINAL_ENV still contains bundler knownledge when using bundle exec #5700

Closed
grosser opened this issue Jun 2, 2017 · 3 comments
Closed

Comments

@grosser
Copy link
Contributor

grosser commented Jun 2, 2017

bundle exec ruby -e 'puts Bundler::ORIGINAL_ENV'
has RUBYOPT / BUNDLE_GEMFILE / BUNDLE_BIN_PATH etc

.clean_env peviously solved that, but was declared deprecated in #4702 (comment)

for bundle exec ruby and alternative would be ruby -rbundler/setup ... but that does not work for rake and other gem binaries

@indirect @segiddins

@segiddins
Copy link
Member

Reproduced. Seems like a bug to me

@segiddins
Copy link
Member

I think #5701 should address this, if you want to try it out

@grosser
Copy link
Contributor Author

grosser commented Jun 3, 2017

works!

bundlerbot added a commit that referenced this issue Jun 14, 2017
Ensure Bundler.original_env preserves _all_ keys bundler sets

Closes #5700.

Attempts to make sure we properly preserve missing env variables such as `RUBYOPT` across `bundle exec` invocations so that `Bundler.original_env` is accurate
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants