mix precompiled.report (Precompiled v0.5.1)

Copy Markdown View Source

Sends what the last build in this _build (this MIX_ENV and MIX_TARGET: run it with the same ones as the build) hit, missed and failed to the configured source, so misses can be analysed and fixed. It shows exactly what will be sent and asks first.

mix precompiled.report                    # show, ask, send
mix precompiled.report --yes              # no question (CI)
mix precompiled.report --contact @me      # a handle for follow-up questions
mix precompiled.report --dump             # print the exact JSON, send nothing
mix precompiled.report --dump out.json    # write it to a file, send nothing

Without --yes only y or yes sends; anything else, and a stdin that is not interactive, counts as no.

Sent: each dependency's name, version, HIT/MISS/FAIL and reason code; the Elixir and OTP versions, OS family and architecture, target and Nerves system; and the public Hex lock entries of those dependencies. Never sent: the project name, paths, host or user name, config values, environment variables, private package names. The answer to a new report is its id, printed once; it is all it takes to retract the report (DELETE <source>/reports/<id>). Sending the same report again is answered with "already received" and no id.

A shortened --dump of a host project. A package from a private Hex organisation in the same lock appears nowhere, and the checksums are cut short here only:

{
  "format": 1,
  "client": "0.4.0",
  "built_at": "2026-11-10T14:02:11Z",
  "elixir": "1.20.3",
  "otp": 29,
  "os": {"family": "unix", "arch": "aarch64-apple-darwin"},
  "target": "host",
  "contact": "@my-github-handle",
  "lines": [
    {"name": "jason", "version": "1.4.4", "status": "hit",
     "reason_code": "hit", "reason_args": [], "reason": "installed"},
    {"name": "phoenix", "version": "1.8.1", "status": "miss",
     "reason_code": "closure_mismatch",
     "reason_args": ["telemetry", "1.2.1", "1.3.0"],
     "reason": "built against telemetry 1.2.1, lock has 1.3.0"}
  ],
  "lock": [
    {"name": "jason", "version": "1.4.4", "checksum": "bbbbbbbb…"},
    {"name": "phoenix", "version": "1.8.1", "checksum": "ffffffff…"},
    {"name": "telemetry", "version": "1.3.0", "checksum": "22222222…"}
  ]
}

The full example is in the Troubleshooting guide.

Reporting never fails anything: any error is one line and the task exits 0. It reads nothing but the report and the lock, and changes nothing in _build.