Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation: Bundler.with_clean_env #78

Open
pboling opened this issue Feb 3, 2021 · 3 comments
Open

Deprecation: Bundler.with_clean_env #78

pboling opened this issue Feb 3, 2021 · 3 comments

Comments

@pboling
Copy link

pboling commented Feb 3, 2021

[DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /home/circleci/project/vendor/bundle/ruby/2.5.0/gems/semaphore_****_boosters-2.6.0/lib/****_boosters/shell.rb:32)

It is being triggered by this code: https://github.com/renderedtext/test-boosters/blob/master/lib/test_boosters/shell.rb#L32

    def with_clean_env
      defined?(Bundler) ? Bundler.with_clean_env { yield } : yield
    end
@pboling
Copy link
Author

pboling commented Feb 9, 2021

For future searchers... This is fixed in several forks. Check out the Network view. :)

Update: Here's an example fixed repo: https://github.com/tobyndockerill/test-boosters, master branch

@renderedtext appears to be non-responsive on this repo.

@Mth0158
Copy link

Mth0158 commented Aug 2, 2022

Had the same issue today using this gem in gitlab CI =>

[DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /builds/[MASKED]/[MASKED]/vendor/bundle/ruby/2.7.0/gems/semaphore_test_boosters-2.7.1/lib/test_boosters/shell.rb:32)

@pboling you mentioned that this is fixed in several forks, do you have any recommendation on the one to use? All forks are mostly 0 stars

@pboling
Copy link
Author

pboling commented Sep 12, 2022

@Mth0158 I was using a forked copy of https://github.com/tobyndockerill/test-boosters, master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants