diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-12-07 16:32:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 16:32:35 +0100 |
commit | d602762dc7ad7f8b52a39415a032859aaf4fc388 (patch) | |
tree | 7c84c72d5cbc3331c5ca27421507ebf5446e1f25 /src/nix-store | |
parent | c710aa1abd51231ce45fc419de2e0e82c8957fbd (diff) | |
parent | b5b7902a08e63290b7f775c6ccecdee11c3df556 (diff) |
Merge pull request #7099 from lheckemann/remove-repeat
Remove repeat option
Diffstat (limited to 'src/nix-store')
-rw-r--r-- | src/nix-store/nix-store.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index b59a6d026..b854ef1e7 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -808,14 +808,17 @@ static void opServe(Strings opFlags, Strings opArgs) if (GET_PROTOCOL_MINOR(clientVersion) >= 2) settings.maxLogSize = readNum<unsigned long>(in); if (GET_PROTOCOL_MINOR(clientVersion) >= 3) { - settings.buildRepeat = readInt(in); - settings.enforceDeterminism = readInt(in); + if (readInt(in) != 0) { + throw Error("client requested repeating builds, but this is not currently implemented"); + } + if (readInt(in) != 0) { + throw Error("client requested enforcing determinism, but this is not currently implemented"); + } settings.runDiffHook = true; } if (GET_PROTOCOL_MINOR(clientVersion) >= 7) { settings.keepFailed = (bool) readInt(in); } - settings.printRepeatedBuilds = false; }; while (true) { |