mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Add a hook to run diffoscope when non-determinism is detected
This commit is contained in:
parent
b07060688a
commit
9a313469a4
2 changed files with 33 additions and 7 deletions
|
@ -843,6 +843,7 @@ static void opServe(Strings opFlags, Strings opArgs)
|
|||
if (GET_PROTOCOL_MINOR(clientVersion) >= 3) {
|
||||
settings.set("build-repeat", std::to_string(readInt(in)));
|
||||
settings.set("enforce-determinism", readInt(in) != 0 ? "true" : "false");
|
||||
settings.set("run-diff-hook", "true");
|
||||
}
|
||||
settings.printRepeatedBuilds = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue