class Molinillo::VersionConflict(R, S)
- Molinillo::VersionConflict(R, S)
- Molinillo::ResolverError
- Exception
- Reference
- Object
Overview
An error caused by conflicts in version
Included Modules
Defined in:
molinillo/errors.crConstructors
-
.new(conflicts : Hash(String, Molinillo::Resolver::Resolution::Conflict(R, S)), specification_provider : Molinillo::SpecificationProvider(R, S))
Initializes a new error with the given version conflicts.
Instance Method Summary
-
#conflicts : Hash(String, Resolver::Resolution::Conflict(R, S))
@return [{String => Resolution::Conflict}] the conflicts that caused resolution to fail
-
#message_with_trees(opts = {} of Symbol => String)
@return [String] An error message that includes requirement trees, which is much more detailed & customizable than the default message @param [Hash] opts the options to create a message with.
-
#specification_provider : SpecificationProvider(R, S)
@return [SpecificationProvider] the specification provider used during resolution
Instance methods inherited from module Molinillo::Delegates::SpecificationProvider
allow_missing?(dependency)
allow_missing?,
dependencies_for(specification)
dependencies_for,
name_for(dependency)
name_for,
name_for_explicit_dependency_source
name_for_explicit_dependency_source,
name_for_locking_dependency_source
name_for_locking_dependency_source,
requirement_satisfied_by?(requirement, activated, spec)
requirement_satisfied_by?,
search_for(dependency)
search_for,
sort_dependencies(dependencies, activated, conflicts)
sort_dependencies
Constructor Detail
Initializes a new error with the given version conflicts. @param [{String => Resolution::Conflict}] conflicts see {#conflicts} @param [SpecificationProvider] specification_provider see {#specification_provider}
Instance Method Detail
@return [{String => Resolution::Conflict}] the conflicts that caused resolution to fail
@return [String] An error message that includes requirement trees, which is much more detailed & customizable than the default message @param [Hash] opts the options to create a message with. @option opts [String] :solver_name The user-facing name of the solver @option opts [String] :possibility_type The generic name of a possibility @option opts [Proc] :reduce_trees A proc that reduced the list of requirement trees @option opts [Proc] :printable_requirement A proc that pretty-prints requirements @option opts [Proc] :additional_message_for_conflict A proc that appends additional messages for each conflict @option opts [Proc] :version_for_spec A proc that returns the version number for a possibility
@return [SpecificationProvider] the specification provider used during resolution