mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-28 09:21:55 +01:00
In the gate leg that saves the dependency cache, craft-common-actions' rust-cache action names a file in CRAFT_CACHE_UNITS, and its cache-trim action keeps only the build units that file names. xtask wrote nothing to it, so every warm leg logged "cache-trim: no unit record, so the target directory stays as it is" and the saved entry kept the old builds of every dependency still in Cargo.lock. With CRAFT_CACHE_UNITS set, each cargo build of `cargo xtask ci warm` runs with --message-format json-render-diagnostics. Cargo's JSON messages go to the record, and diagnostics stay readable on stderr. xtask records its own build first (cargo build -p xtask), since `cargo xtask` builds it before xtask can record anything. Without the variable the commands run as before.