[2.0] Add a feature flag for bundle install not —cacheing by default#5724
[2.0] Add a feature flag for bundle install not —cacheing by default#5724
bundle install not —cacheing by default#5724Conversation
bundle install not —cacheing by defaultbundle install not —cacheing by default
|
☔ The latest upstream changes (presumably #5722) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r+ |
35fe424 to
8a5172d
Compare
|
☔ The latest upstream changes (presumably #5727) made this pull request unmergeable. Please resolve the merge conflicts. |
8a5172d to
20d945f
Compare
…lby-swandale
[CLI] Dont print defaults in the command printed with --verbose
### What was the end-user problem that led to this PR?
The problem was that running `bundle lock --verbose` would print
Running `bundle lock --add-platform --remove-platform --verbose` with bundler 1.15.1
even though the platform flags were never specified. This was surfaced by #5724, which will be fixed by this PR.
### Was was your diagnosis of the problem?
My diagnosis was that default values of options were being printed.
### What is your fix for the problem, implemented in this PR?
My fix is to filter out the default values before getting Thor
### Why did you choose this fix out of the possible options?
I chose this fix because there is no way, within the `CLI` instance, to tell which flags the user has explicitly given, so I felt that filtering out those options that had default values was the next-best thing.
…lby-swandale
[CLI] Dont print defaults in the command printed with --verbose
### What was the end-user problem that led to this PR?
The problem was that running `bundle lock --verbose` would print
Running `bundle lock --add-platform --remove-platform --verbose` with bundler 1.15.1
even though the platform flags were never specified. This was surfaced by #5724, which will be fixed by this PR.
### Was was your diagnosis of the problem?
My diagnosis was that default values of options were being printed.
### What is your fix for the problem, implemented in this PR?
My fix is to filter out the default values before getting Thor
### Why did you choose this fix out of the possible options?
I chose this fix because there is no way, within the `CLI` instance, to tell which flags the user has explicitly given, so I felt that filtering out those options that had default values was the next-best thing.
|
☔ The latest upstream changes (presumably #5788) made this pull request unmergeable. Please resolve the merge conflicts. |
20d945f to
20aa759
Compare
|
Rebased. Only 1.0 failure was due to trampolining, which is now gone. |
|
This causes a few changes of behavior that we need to decide if we want to fix or change: |
|
☔ The latest upstream changes (presumably #5790) made this pull request unmergeable. Please resolve the merge conflicts. |
20aa759 to
aee6bcd
Compare
|
Rebased. |
aee6bcd to
1bb460b
Compare
1bb460b to
ae0363d
Compare
|
☔ The latest upstream changes (presumably #5839) made this pull request unmergeable. Please resolve the merge conflicts. |
…lby-swandale
[CLI] Dont print defaults in the command printed with --verbose
### What was the end-user problem that led to this PR?
The problem was that running `bundle lock --verbose` would print
Running `bundle lock --add-platform --remove-platform --verbose` with bundler 1.15.1
even though the platform flags were never specified. This was surfaced by #5724, which will be fixed by this PR.
### Was was your diagnosis of the problem?
My diagnosis was that default values of options were being printed.
### What is your fix for the problem, implemented in this PR?
My fix is to filter out the default values before getting Thor
### Why did you choose this fix out of the possible options?
I chose this fix because there is no way, within the `CLI` instance, to tell which flags the user has explicitly given, so I felt that filtering out those options that had default values was the next-best thing.
(cherry picked from commit de7d488)
# Conflicts:
# lib/bundler/cli.rb
|
@indirect should I close this since we got rid of the |
|
@indirect ping? |
|
Now that the |
What was the end-user problem that led to this PR?
The problem was that
bundle installwould default to always updating the cache invendor/bundle(if it existed).Was was your diagnosis of the problem?
My diagnosis was that the default for the
--cacheflag should befalseinstead oftrue.What is your fix for the problem, implemented in this PR?
My fix is to invert the default on 2.0, using a feature flag. Taken from #3555.
Why did you choose this fix out of the possible options?
I chose this fix because it allowed a feature flag for a breaking change in 2.0 and was minimally invasive.