lib/solve/ruby_solver.rb in solve-2.0.2 vs lib/solve/ruby_solver.rb in solve-2.0.3
- old
+ new
@@ -178,9 +178,18 @@
# those passed to {Resolver#resolve} directly as the `base`
def name_for_locking_dependency_source
'Lockfile'
end
+ # Returns whether this dependency, which has no possible matching
+ # specifications, can safely be ignored.
+ #
+ # @param [Object] dependency
+ # @return [Boolean] whether this dependency can safely be skipped.
+ def allow_missing?(dependency)
+ false
+ end
+
private
def resolve_with_error_wrapping
@resolver.resolve(demands, @molinillo_graph)
rescue Molinillo::VersionConflict, Molinillo::CircularDependencyError => e