From 9a313469a4bdea2d1e8df24d16289dc2a172a169 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Dec 2016 17:57:35 +0100 Subject: Add a hook to run diffoscope when non-determinism is detected --- src/nix-store/nix-store.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nix-store') diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index f81cff4accd3..c1e6afef0e50 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -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; }; -- cgit 1.4.1