Proving a refactor is neutral
A framework refactor changes no deployed system: the derivation (drvPath) of each host stays identical. just drv-diff checks this, from the root of a co-development project.
just drv-diff # tout le parcjust drv-diff gw-main,nas # deux hôtes, pendant le travailjust drv-diff "" HEAD~3 # contre une révision antérieure de dnf/The command evaluates each host twice: against the last commit of dnf/, then against the working tree. It lists the hosts whose derivation differs and exits with an error if there are any.
Files taken into account
Section titled “Files taken into account”The working tree is read as just commit would commit it: tracked files and new files, except those git ignores. The consuming project is the same on both sides; only dnf/ varies.
Pending input updates
Section titled “Pending input updates”A flake.lock of dnf/ that is modified but not yet committed (nix flake update) changes all hosts and would mask the effect of the code. The command reports it, then reads the working tree using the lock of the base revision.
LOCK=tree just drv-diff # compter aussi la mise à jour des inputsA derivation differs
Section titled “A derivation differs”The output gives the two drvPath of each affected host. Comparing them shows what changed:
nix run nixpkgs#nix-diff -- <avant.drv> <après.drv>A wanted difference is no longer a refactor: the commit then carries the type feat or fix.
Resources
Section titled “Resources”Two evaluations run one after the other, each on two processes. WORKERS changes their number, and WORKER_MEM (MB) caps the memory of each.
WORKERS=1 just drv-diff