summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-20 17:45:12 +0200
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-07-05 07:27:37 +0200
commit1e9818c0dacdb23ad20800fcc868d3d53ee8873f (patch)
tree148a26eab404c98147d426541dd6228d97bec9ba
parent899aeeebb036a63a9b254f6bdd49819d6ae6717d (diff)
downloadbundler-seg-package-all-platforms-without.tar.gz
Don't persist the cache_all_platforms settingseg-package-all-platforms-without
We only want it temporarily during the duration of the cache saving.
-rw-r--r--lib/bundler/cli/package.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bundler/cli/package.rb b/lib/bundler/cli/package.rb
index 3293b5512b..3fa87ff265 100644
--- a/lib/bundler/cli/package.rb
+++ b/lib/bundler/cli/package.rb
@@ -11,7 +11,6 @@ module Bundler
def run
Bundler.ui.level = "error" if options[:quiet]
Bundler.settings.set_command_option_if_given :path, options[:path]
- Bundler.settings.set_command_option_if_given :cache_all_platforms, options["all-platforms"]
Bundler.settings.set_command_option_if_given :cache_path, options["cache-path"]
setup_cache_all
@@ -19,7 +18,10 @@ module Bundler
# TODO: move cache contents here now that all bundles are locked
custom_path = Bundler.settings[:path] if options[:path]
- Bundler.load.cache(custom_path)
+
+ Bundler.settings.temporary(:cache_all_platforms => options["all-platforms"]) do
+ Bundler.load.cache(custom_path)
+ end
end
private