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

[2.0] Suppress Using … messages during installation when a version has not changed #5790

Merged
merged 2 commits into from
Jul 5, 2017

Conversation

segiddins
Copy link
Member

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

The problem was that bundle install output can get very verbose, even when Bundler is not doing anything.

See rubygems/bundler-features#33.

Was was your diagnosis of the problem?

My diagnosis was that bundler was printing a bunch of Using name (version) messages, even when we were already using that gem at the same version.

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

My fix is to introduce a feature flag (enabled by default on 2.0), that will only print those extra Using messages when --verbose is passed, and will continue to print them when there was an old version we can tell users about. Note that we still print a message when installing a gem for the first time.

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

I chose this fix because it was essentially what had been done in #3872, and allows for easy feature-flagging.

@segiddins segiddins requested a review from indirect June 19, 2017 20:50
@bundlerbot
Copy link
Collaborator

☔ The latest upstream changes (presumably #5788) made this pull request unmergeable. Please resolve the merge conflicts.

@segiddins segiddins force-pushed the seg-suppress-using-messages branch from d870da2 to 6f84b75 Compare June 27, 2017 16:00
@segiddins
Copy link
Member Author

Rebased

@bundlerbot
Copy link
Collaborator

☔ The latest upstream changes (presumably #5782) made this pull request unmergeable. Please resolve the merge conflicts.

@segiddins segiddins force-pushed the seg-suppress-using-messages branch from 6f84b75 to 8b8c798 Compare July 2, 2017 13:33
@segiddins
Copy link
Member Author

2.0 specs updated, please review

@segiddins segiddins requested a review from colby-swandale July 2, 2017 13:34
@segiddins segiddins force-pushed the seg-suppress-using-messages branch from 8b8c798 to 7622270 Compare July 3, 2017 13:43
@indirect
Copy link
Member

indirect commented Jul 5, 2017

I really like using Bundler more after this change, 💯 @bundlerbot r+

@bundlerbot
Copy link
Collaborator

📌 Commit 7622270 has been approved by indirect

@bundlerbot
Copy link
Collaborator

⌛ Testing commit 7622270 with merge 955c131...

bundlerbot added a commit that referenced this pull request Jul 5, 2017
[2.0] Suppress `Using …` messages during installation when a version has not changed

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

The problem was that `bundle install` output can get very verbose, even when Bundler is not doing anything.

See rubygems/bundler-features#33.

### Was was your diagnosis of the problem?

My diagnosis was that bundler was printing a bunch of `Using name (version)` messages, even when we were already using that gem at the same version.

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

My fix is to introduce a feature flag (enabled by default on 2.0), that will only print those extra `Using` messages when `--verbose` is passed, and will continue to print them when there was an old version we can tell users about. Note that we still print a message when installing a gem for the first time.

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

I chose this fix because it was essentially what had been done in #3872, and allows for easy feature-flagging.
@bundlerbot
Copy link
Collaborator

☀️ Test successful - status-travis
Approved by: indirect
Pushing 955c131 to master...

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.

3 participants