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

Fix bundle exec'ing to rubygems being silent #7442

Merged
1 commit merged into from Nov 21, 2019

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user problem that led to this PR?

The problem was that #7401 caused a regression where bundle exec'ing to rubygems would silence rubygems output.

What was your diagnosis of the problem?

My diagnosis was that the removal of:

  • Code where Bundler::RGProxy would be only set conditionally on Bundler.ui = not being passed nil.
  • Code setting Bundler.ui to nil right before shelling during bundle exec.

caused rubygems UI to be silent during bundle exec gem.

What is your fix for the problem, implemented in this PR?

My fix is to explictly "unsilence" rubygems UI before bundle exec calls.

Why did you choose this fix out of the possible options?

I chose this fix because it's more explicit than the previous one.

Fixes #7441.

@deivid-rodriguez deivid-rodriguez added this to the 2.1.0.rc milestone Nov 18, 2019
@deivid-rodriguez deivid-rodriguez changed the title Fix shelling out to rubygems being silent Fix bundle exec'ing to rubygems being silent Nov 18, 2019
@deivid-rodriguez
Copy link
Member Author

@bundlerbot merge

ghost pushed a commit that referenced this pull request Nov 21, 2019
7442: Fix `bundle exec`'ing to rubygems being silent r=deivid-rodriguez a=deivid-rodriguez

### What was the end-user problem that led to this PR?

The problem was that #7401 caused a regression where `bundle exec`'ing to rubygems would silence rubygems output.

### What was your diagnosis of the problem?

My diagnosis was that the removal of:
* Code where `Bundler::RGProxy` would be only set conditionally on `Bundler.ui =` not being passed `nil`.
* Code setting `Bundler.ui` to `nil` right before shelling during `bundle exec`.

caused rubygems UI to be silent during `bundle exec gem`.

### What is your fix for the problem, implemented in this PR?

My fix is to explictly "unsilence" rubygems UI before `bundle exec` calls.

### Why did you choose this fix out of the possible options?

I chose this fix because it's more explicit than the previous one.

Fixes #7441.


Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
@ghost
Copy link

ghost commented Nov 21, 2019

Build succeeded

@ghost ghost merged commit 320ac53 into master Nov 21, 2019
@ghost ghost deleted the fix_silent_output_from_rubygems branch November 21, 2019 12:04
@deivid-rodriguez deivid-rodriguez modified the milestones: 2.1.0.rc, 2.1.0 Dec 13, 2019
deivid-rodriguez pushed a commit that referenced this pull request Dec 13, 2019
7442: Fix `bundle exec`'ing to rubygems being silent r=deivid-rodriguez a=deivid-rodriguez

### What was the end-user problem that led to this PR?

The problem was that #7401 caused a regression where `bundle exec`'ing to rubygems would silence rubygems output.

### What was your diagnosis of the problem?

My diagnosis was that the removal of:
* Code where `Bundler::RGProxy` would be only set conditionally on `Bundler.ui =` not being passed `nil`.
* Code setting `Bundler.ui` to `nil` right before shelling during `bundle exec`.

caused rubygems UI to be silent during `bundle exec gem`.

### What is your fix for the problem, implemented in this PR?

My fix is to explictly "unsilence" rubygems UI before `bundle exec` calls.

### Why did you choose this fix out of the possible options?

I chose this fix because it's more explicit than the previous one.

Fixes #7441.

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
(cherry picked from commit a11c104)
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bundle exec gem --version outputs nothing
1 participant