Struo
← Changelog

Mix resolves public Hex dependencies in the graph

Struo's experimental Mix adapter now selects public Hex dependencies from mix.exs, native mix.lock pins and authenticated registry metadata. The Starlark resolver prefers compatible pins, checks optional constraints and root overrides, and proposes native lock bytes without editing the source lockfile.

Each selected package has its own fetch target. Compilation waits for that package's verified source and compiled dependencies, while unrelated downloads continue. Mix and Rebar compile private copies with Hex offline, without populating the project's deps/ directory. Acquisition requires an installed Hex archive and verifies archive checksums, package names and versions.

Path manifests participate in the same solution. Struo preserves their workspace-relative source context and forwards the selected dependency environment into evaluation and compilation. Conflicting compile options fail before Struo publishes compilation targets.

Legacy Hex pins acquire authenticated outer checksums before fetching source. Git dependencies join the same solution after immutable acquisition and private Mix or Rebar manifest evaluation. The prelude retains compatible Git pins and selects missing pins from retained branch, tag or HEAD observations. Checked-in graph snapshots retain the materialized-source compatibility reader. Cross-checkout remote-cache restoration covers pinned Hex sources and a changed consumer build, not portable compiled-package cache hits or remote Git restoration. Full Git/Rebar compatibility and durable query replay remain under development. Custom repositories and credentialed mirrors are unsupported on the graph-acquisition path. Root and dependency metadata actions run read-only with network denied; automatic native-project discovery uses the same policy. Dynamic discovery still cannot establish complete persisted read authority for affected queries. Explicit lock proposals guard original bytes, absence, directory membership and regular-file permissions before source publication.