hydra-queue-runner: adjust for Lix generators related changes

This commit is contained in:
Pierre Bourdon 2024-07-16 04:35:29 +02:00
parent 1fbfed8162
commit 6195cec6a3
Signed by untrusted user: delroth
GPG key ID: 6FB80DCD84DA0F1C
3 changed files with 3 additions and 4 deletions

View file

@ -121,7 +121,7 @@ static void copyClosureTo(
the remote host to substitute missing paths. */
// FIXME: substitute output pollutes our build log
conn.to << ServeProto::Command::QueryValidPaths << 1 << useSubstitutes;
ServeProto::write(destStore, conn, closure);
conn.to << ServeProto::write(destStore, conn, closure);
conn.to.flush();
/* Get back the set of paths that are already valid on the remote
@ -359,7 +359,7 @@ static std::map<StorePath, ValidPathInfo> queryPathInfos(
/* Get info about each output path. */
std::map<StorePath, ValidPathInfo> infos;
conn.to << ServeProto::Command::QueryPathInfos;
ServeProto::write(localStore, conn, outputs);
conn.to << ServeProto::write(localStore, conn, outputs);
conn.to.flush();
while (true) {
auto storePathS = readString(conn.from);

View file

@ -36,7 +36,7 @@ BuildOutput getBuildOutput(
printInfo("fetching NAR contents of '%s'...", outputS);
auto source = sinkToSource([&](Sink & sink)
{
store->narFromPath(output, sink);
sink << store->narFromPath(output);
});
extractNarData(*source, outputS, narMembers);
}

View file

@ -328,7 +328,6 @@ struct Machine : nix::Machine
operator nix::ServeProto::WriteConn ()
{
return {
.to = to,
.version = remoteVersion,
};
}