From 24ede701b16b98b3a9e7e0fc4684668508732a3b Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Sun, 19 Aug 2018 23:36:25 -0700 Subject: Add a spec for bundle exec bundle install stack overflowing --- spec/commands/exec_spec.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb index 17fc959baf..1032f10d18 100644 --- a/spec/commands/exec_spec.rb +++ b/spec/commands/exec_spec.rb @@ -926,5 +926,25 @@ __FILE__: #{path.to_s.inspect} expect(err).to include("custom openssl should not be loaded") end end + + context "with a git gem that includes extensions" do + before do + system_gems :bundler, :keep_path => true + build_git "simple_git_binary", &:add_c_extension + bundle! "config set path .bundle" + install_gemfile! <<-G, :system_bundler => true + gem "simple_git_binary", :git => '#{lib_path("simple_git_binary-1.0")}' + G + end + + it "allows calling bundle install" do + bundle! "exec bundle install", :system_bundler => true + end + + it "allows calling bundle install after removing gem.build_complete" do + FileUtils.rm_rf Dir[bundled_app(".bundle/**/gem.build_complete")] + bundle! "exec #{Gem.ruby} -S bundle install", :system_bundler => true + end + end end end -- cgit v1.2.1