Skip to content

Commit

Permalink
Fix regression caused by ee2e9f5
Browse files Browse the repository at this point in the history
‘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.
  • Loading branch information
edolstra committed Oct 24, 2016
1 parent f7ff7f7 commit 3fcfa20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hydra-queue-runner/build-remote.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void State::buildRemote(ref<Store> 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<Store>(localStore), destStore, basicDrv.inputSrcs);
copyClosure(ref<Store>(localStore), destStore, step->drv.inputSrcs);

/* Copy the input closure. */
if (/* machine->sshName != "localhost" */ true) {
Expand Down

0 comments on commit 3fcfa20

Please sign in to comment.