precompiled never fails your build: when something is wrong, the
affected dependencies compile from source and one line says why. Find
that line below.
Getting more detail
Set
To
PRECOMPILED_DEBUG=1
also list the dependencies that were not candidates, and why
PRECOMPILED=0
rule the library out completely: it removes its installs and Mix compiles everything
Setup
Line
Meaning
What to do
ArgumentError: precompiled: :source is not an option (or :root, :content)
source unreachable (<why>); using the cached batch
The network failed; a cached batch that still passes every check stood in.
Nothing. Files that are not in the cache miss straight away; the source is not asked again in that run.
batch unavailable: offline, no cached batch
PRECOMPILED_OFFLINE=1 is set and this machine has no batch yet.
Run once online to fill the cache.
no fresh batch (<why>); N installed builds kept, not rechecked
Earlier installs stay as they are.
Nothing; they are rechecked once a batch is available again.
Clock
Line
Meaning
What to do
clock is before ...
The machine's clock is wrong, typically a device before NTP.
Set the clock. Nothing installs until then.
clock: ...
A batch claims to be from the future.
Check the clock.
Cache
Line
Meaning
What to do
cache dir ... is not writable; using ...
The run used a fresh cache under _build.
Fix the permissions, or set PRECOMPILED_HOME.
FAIL cache refused (... remove it)
A cache entry is a symlink or not a plain file; it is never followed.
Remove the path the line names.
A dependency misses
A MISS line names the rule that the closest build broke; see
What matches for all the rules. Some worth knowing:
Line
Meaning
MISS reads Mix.target() at compile time ...
Rule 8: no build was made for your target name. It compiles from source.
MISS project sets :manager for this dependency
Rule 9: your deps entry, or a package's mix.exs, changes how Mix builds it, with :manager, :compile or :system_env. It always compiles from source.
MISS built with rebar3, project builds with make
Rule 9: the build was made by another manager than Mix uses for it here. It compiles from source.
MISS build method unknown (deps did not load: ...)
Rule 9: Precompiled.Host.install/2 could not load the dependencies through Mix (the warning above names why), so no build can be confirmed. Everything compiles from source.
MISS built with rebar3, project's manager for it is unknown
Rule 9: Mix resolved no manager for the dependency here (often: its sources are not fetched yet), so the build's cannot be confirmed. It compiles from source.