Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · XO1512

Docs

XO1512: a run cache entry differs from a rebuild

error · reported by the build

xo build, xo run (XO_WHOLE_BUILD) and xo test reuse an unchanged program’s binary from the run cache: the entry lists every file the build read, every path it looked for, and every environment variable it read, and is used only when all still match. XO_BACKEND_CACHE=verify builds anyway and compares the result with the entry. A difference means the entry missed an input, or the build is not reproducible; either is a bug in xo. The entry is replaced by the rebuild.

Example

# XO_BACKEND_CACHE=verify xo build .
error XO1512: the run cache's entry for this build differs from a rebuild in the binary

Fix

# report it with the program; meanwhile build without the run cache
XO_BIN_CACHE=off xo build .

Run xo explain XO1512 for this text in a terminal, or see section 10.6 of the specification.