From 5b9a28812374112059fa17adb1d2b4fbc9f58107 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 31 Jul 2015 03:39:20 +0200 Subject: [PATCH] Workaround for RemoteStore not supporting cmdBuildDerivation yet --- src/hydra-queue-runner/build-remote.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index d5a75d69..55efcf15 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -156,8 +156,9 @@ void State::buildRemote(std::shared_ptr store, unsigned int version = readInt(from); if (GET_PROTOCOL_MAJOR(version) != 0x200) throw Error(format("unsupported ‘nix-store --serve’ protocol version on ‘%1%’") % machine->sshName); - if (GET_PROTOCOL_MINOR(version) >= 1) + if (GET_PROTOCOL_MINOR(version) >= 1 && machine->sshName != "localhost") // FIXME sendDerivation = false; + } catch (EndOfFile & e) { child.pid.wait(true);