Repository navigation
The first public release of Resolver.jl, a package version resolver for Julia built on a SAT solver (PicoSAT). It is Pkg's default resolver from Julia 1.14 on, through a vendored copy.
- Complete. A SAT solver finds a resolution whenever one exists, unlike the belief-propagation heuristic it replaces.
- Optimal, with configurable preferences. The answer is the unique Pareto-optimal resolution for a caller-supplied package priority and per-package version order. Strategies such as newest, oldest (downgrade), prefer-installed and keep-current can be mixed within one resolve.
- Diagnoses when resolution fails. For an unsatisfiable problem it reports which requirements and constraints conflict, the chain of facts that shows why, and a menu of fixes, each verified to work.
- Shrinks the problem first. Reachability analysis and redundancy elimination drop versions that can't appear in a solution, or that other versions dominate, before solving.
- Generic core.
src/knows nothing about Julia versions or registries. Thebin/resolve.jlcommand-line tool adapts it to real registries and can write aManifest.toml; it backsjulia-downgrade-compat.
See the README for more.