Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/bundler/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ def install
def update(*gems)
SharedHelpers.major_deprecation(2, "The `--force` option has been renamed to `--redownload`") if ARGV.include?("--force")
require "bundler/cli/update"
Update.new(options, gems).run
Bundler.settings.temporary(:no_install => false) do
Update.new(options, gems).run
end
end

desc "show GEM [OPTIONS]", "Shows all gems that are part of the bundle, or the path to a given gem"
Expand Down
12 changes: 12 additions & 0 deletions spec/commands/package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@

expect(the_bundle).to include_gems "rack 1.0.0"
end

it "does not prevent installing gems with bundle update" do
gemfile <<-D
source "file://#{gem_repo1}"
gem "rack", "1.0.0"
D

bundle! "package --no-install"
bundle! "update"

expect(the_bundle).to include_gems "rack 1.0.0"
end
end

context "with --all-platforms" do
Expand Down