summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBundlerbot <bot@bundler.io>2019-08-27 23:20:38 +0000
committerBundlerbot <bot@bundler.io>2019-08-27 23:20:38 +0000
commit35781bbdbcf6f0394439aefd08afdf12ecfa4e08 (patch)
tree721618b6263c51194ce7a4c3d61d97eb56d4727c
parentc8081842e4e0a4f553831a5d688fb537f9481dd0 (diff)
parent65351c58b8a03d3a1c8a7661375bd0329bdf462e (diff)
downloadbundler-35781bbdbcf6f0394439aefd08afdf12ecfa4e08.tar.gz
Merge #6112v2.1.0.pre.1
6112: Add a spec for installing git deps after packaging without git r=deivid-rodriguez a=segiddins ### What was the end-user problem that led to this PR? The problem was v1.15 seemed to break installing without git when the git deps had already been packaged (see https://github.com/bundler/bundler/issues/6066). ### What was your diagnosis of the problem? My diagnosis was we actually seemed to have fixed this for 1.16. ### What is your fix for the problem, implemented in this PR? My fix adds a test to ensure we won't regress. Co-authored-by: Samuel Giddins <segiddins@segiddins.me>
-rw-r--r--spec/cache/git_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/cache/git_spec.rb b/spec/cache/git_spec.rb
index 85d1d29043..1cb278e912 100644
--- a/spec/cache/git_spec.rb
+++ b/spec/cache/git_spec.rb
@@ -220,5 +220,22 @@ end
gemspec = bundled_app("vendor/cache/foo-1.0-#{ref}/foo.gemspec").read
expect(gemspec).to_not match("`echo bob`")
end
+
+ it "can install after #{cmd} with git not installed" do
+ build_git "foo"
+
+ gemfile <<-G
+ gem "foo", :git => '#{lib_path("foo-1.0")}'
+ G
+ bundle! "config set cache_all true"
+ bundle! cmd, "all-platforms" => true, :install => false, :path => "./vendor/cache"
+
+ simulate_new_machine
+ with_path_as "" do
+ bundle! "config set deployment true"
+ bundle! :install, :local => true
+ expect(the_bundle).to include_gem "foo 1.0"
+ end
+ end
end
end