Skip to content

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 03 Oct 16:15
· 33 commits to main since this release
138eef3

Constraint-aware dependency resolution (R-3).

  • Registry constraints: packages can declare which versions of their dependencies they work with, using dep_constraints in the registry (e.g. requests 1.2.0 → json >=3.0.1). Previously every transitive dependency resolved to its newest version, so pinning requests = "=1.1.0" locked json 3.0.1, which it can't compile against.
  • Backtracking resolver: the newest versions satisfying every constraint are chosen, falling back to older versions when needed. For example, requests >=1.0 with json =1.1.0 resolves to requests 1.1.0. Conflicts list each constraint and its source.
  • Ranges: >=1.0.0,<2.0.0 is now supported in mojoproject.toml.
  • Linux HTTPS fix: binaries are built against tls 1.4.2, fixing an intermittent cannot open /etc/ssl/certs/ca-certificates.crt failure on Linux.
  • Compatibility: the lockfile format is unchanged, and existing mojo.lock files install as before.