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

Deprecate bundle cache --all flag #3932

Merged
merged 3 commits into from Sep 8, 2020

Conversation

deivid-rodriguez
Copy link
Member

@deivid-rodriguez deivid-rodriguez commented Sep 6, 2020

Description:

Just like we've done with the other sticky options, I think we should deprecate it in favour of explicitly configuring bundle config set --local cache_all true.

I was really unsure about what to do with the --all flag, because looking back at the history of changes & PRs, it looked like there was a plan to deprecate it, and make it the default behavuor, so that caching git and path gems is not optional.

However, I'm not really sure whether that would be correct or not, or whether it makes sense to allow not caching git & path gems.

So, I propose to keep the option as a configuration setting, cache_all, which will be changing its default value in bundler 3 from false to true.

Regarding the flag, I propose to deprecate it, since it behaves similarly to all the other sticky options which we have already deprecated.

This is a follow up to #3914.

Tasks:

  • Describe the problem / feature
  • Write tests
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

Let's consider both use cases equally valid and don't warn any of them.
Then change in the default will be signaled by changelog and
documentation.
@deivid-rodriguez deivid-rodriguez merged commit 5f97b90 into master Sep 8, 2020
@deivid-rodriguez deivid-rodriguez deleted the deprecate_package_all_flag branch September 8, 2020 18:14
deivid-rodriguez added a commit that referenced this pull request Oct 5, 2020
Deprecate `bundle cache --all` flag

(cherry picked from commit 5f97b90)
deivid-rodriguez added a commit that referenced this pull request Oct 5, 2020
Deprecate `bundle cache --all` flag

(cherry picked from commit 5f97b90)
deivid-rodriguez added a commit that referenced this pull request Oct 5, 2020
Deprecate `bundle cache --all` flag

(cherry picked from commit 5f97b90)
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Deprecate `bundle cache --all` flag

(cherry picked from commit 5f97b90)
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Deprecate `bundle cache --all` flag

(cherry picked from commit 5f97b90)
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Deprecate `bundle cache --all` flag

(cherry picked from commit 5f97b90)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants