Merge pull request #914 from Ma27/fix-remote-builds

Fix `std::bad_alloc` errors for remote builds
This commit is contained in:
Eelco Dolstra 2021-04-15 17:05:54 +02:00 committed by GitHub
commit 0bee194ce9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -338,6 +338,9 @@ void State::buildRemote(ref<Store> destStore,
result.stopTime = stop; result.stopTime = stop;
} }
} }
if (GET_PROTOCOL_MINOR(remoteVersion) >= 6) {
worker_proto::read(*localStore, from, Phantom<DrvOutputs> {});
}
switch ((BuildResult::Status) res) { switch ((BuildResult::Status) res) {
case BuildResult::Built: case BuildResult::Built:
result.stepStatus = bsSuccess; result.stepStatus = bsSuccess;