aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/build')
-rw-r--r--src/libstore/build/derivation-goal.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index a97c32599..ef16cd011 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -1204,11 +1204,9 @@ HookReply DerivationGoal::tryBuildHook()
throw;
}
- CommonProto::WriteConn conn { hook->sink };
-
/* Tell the hook all the inputs that have to be copied to the
remote system. */
- conn.to << CommonProto::write(worker.store, conn, inputPaths);
+ hook->sink << CommonProto::write(worker.store, {}, inputPaths);
/* Tell the hooks the missing outputs that have to be copied back
from the remote system. */
@@ -1219,7 +1217,7 @@ HookReply DerivationGoal::tryBuildHook()
if (buildMode != bmCheck && status.known && status.known->isValid()) continue;
missingOutputs.insert(outputName);
}
- conn.to << CommonProto::write(worker.store, conn, missingOutputs);
+ hook->sink << CommonProto::write(worker.store, {}, missingOutputs);
}
hook->sink = FdSink();