Merge pull request #9600 from SharzyL/fix_nix_copy

fix: nix copy ssh-ng:// not respecting --substitute-on-destination
(cherry picked from commit b1c633c6bb)
Change-Id: I77356d14a9011d6dc4cf64776995f7590d918874
This commit is contained in:
eldritch horrors 2024-03-04 07:16:31 +01:00
parent 13f78c557b
commit 64a269ef73

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);