From 44e1efff7f51cd884f3924fdb086f3268b753972 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 8 Sep 2022 11:51:13 +0200 Subject: [PATCH] Send the right nix-serve client version We were using protocol version 6 but requesting version 4. The only reason that this worked was because of a broken version check in 'nix-store --serve'. That was fixed in https://github.com/NixOS/nix/commit/c2d74569269d9642448a701aa6efe08ec0fe6f00, which had the side-effect of breaking hydra-queue-runner. --- src/hydra-queue-runner/build-remote.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index 57a5f0df..21a6c331 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -234,7 +234,7 @@ void State::buildRemote(ref destStore, unsigned int remoteVersion; try { - to << SERVE_MAGIC_1 << 0x204; + to << SERVE_MAGIC_1 << 0x206; to.flush(); unsigned int magic = readInt(from);