fix: nix copy ssh-ng:// not respecting --substitute-on-destination

This commit is contained in:
SharzyL 2023-12-13 10:30:28 +08:00
parent 3c200da242
commit 04f454f2a0
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ StorePathSet RemoteStore::queryValidPaths(const StorePathSet & paths, Substitute
conn->to << WorkerProto::Op::QueryValidPaths;
WorkerProto::write(*this, *conn, paths);
if (GET_PROTOCOL_MINOR(conn->daemonVersion) >= 27) {
conn->to << (settings.buildersUseSubstitutes ? 1 : 0);
conn->to << maybeSubstitute;
}
conn.processStderr();
return WorkerProto::Serialise<StorePathSet>::read(*this, *conn);