From f73020d493ec2bf7c79fc118f83f328caee701d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 15 Jul 2019 19:31:51 +0200 Subject: [PATCH] [bundler/bundler] Always keep `bundle package --all` option Just change the default. The reason to do this is that the deprecation message talks about the default being changed, not the option being removed. https://github.com/bundler/bundler/commit/eca1757792 --- lib/bundler/cli.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index ef818e12e9..0955bcd5c2 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -425,10 +425,9 @@ module Bundler end desc "#{Bundler.feature_flag.cache_command_is_package? ? :cache : :package} [OPTIONS]", "Locks and then caches all of the gems into vendor/cache" - unless Bundler.feature_flag.cache_all? - method_option "all", :type => :boolean, - :banner => "Include all sources (including path and git)." - end + method_option "all", :type => :boolean, + :default => Bundler.feature_flag.cache_all?, + :banner => "Include all sources (including path and git)." method_option "all-platforms", :type => :boolean, :banner => "Include gems for all platforms present in the lockfile, not only the current one" method_option "cache-path", :type => :string, :banner => "Specify a different cache path than the default (vendor/cache)."