aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/cli/cache.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2022-06-21 20:02:17 +0200
committergit <svn-admin@ruby-lang.org>2022-06-23 18:17:08 +0900
commit4f5eb48dead5c82b966c1fdebc890cf9d3010d86 (patch)
treeda2f04f90658a48c6c08a14d78c58e9508b187da /lib/bundler/cli/cache.rb
parent0b11eac2d64a7123e37ad1320a5d7f52bde4ed17 (diff)
downloadruby-4f5eb48dead5c82b966c1fdebc890cf9d3010d86.tar.gz
[rubygems/rubygems] Fix `bundle package --no-install` no longer skipping install
This is a regression from https://github.com/rubygems/rubygems/commit/cf749f8ffabd. The funny thing is that we have a spec for this feature, so it was unclear how we regressed here. It turns out there was a bug in one of our negative matchers checking that gems ARE NOT included in a bundle. This commit fixes the bug in the negative matcher and reverts https://github.com/rubygems/rubygems/commit/cf749f8ffabd (with a slightly simpler diff). https://github.com/rubygems/rubygems/commit/3f9a4ff32a
Diffstat (limited to 'lib/bundler/cli/cache.rb')
-rw-r--r--lib/bundler/cli/cache.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/cache.rb b/lib/bundler/cli/cache.rb
index eb5dd23092..c8698ed7e3 100644
--- a/lib/bundler/cli/cache.rb
+++ b/lib/bundler/cli/cache.rb
@@ -14,7 +14,7 @@ module Bundler
Bundler.settings.set_command_option_if_given :cache_path, options["cache-path"]
setup_cache_all
- install unless Bundler.settings[:no_install]
+ install
# TODO: move cache contents here now that all bundles are locked
custom_path = Bundler.settings[:path] if options[:path]