Skip to content

Commit 3df1849

Browse files
committed
Use .bundle only if all deps present
1 parent a8ae887 commit 3df1849

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/bundler/support/path.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def sinatra_dependency_paths
321321
cgi
322322
compact_index
323323
]
324-
path = if ruby_core? && Dir.exist?(source_root.join(".bundle"))
324+
path = if ruby_core? && deps.all? {|dep| !Dir[source_root.join(".bundle/gems/#{dep}-*")].empty? }
325325
source_root.join(".bundle")
326326
else
327327
scoped_base_system_gem_path

0 commit comments

Comments
 (0)