From 3fcfa20d1a4683d9f98d32511c55e3dd774f2daf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 24 Oct 2016 16:47:31 +0200 Subject: [PATCH] Fix regression caused by ee2e9f53 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ‘basicDrv.inputSrcs’ also contains the outputs of inputDrvs. These don't necessarily exist in the local store, so copying them may cause an exception. We should only copy the real inputSrcs. --- 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 130f9780..d21ab9d7 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -202,7 +202,7 @@ void State::buildRemote(ref destStore, a no-op for regular stores, but for the binary cache store, this will copy the inputs to the binary cache from the local store. */ - copyClosure(ref(localStore), destStore, basicDrv.inputSrcs); + copyClosure(ref(localStore), destStore, step->drv.inputSrcs); /* Copy the input closure. */ if (/* machine->sshName != "localhost" */ true) {