diff options
author | Robert Hensing <roberth@users.noreply.github.com> | 2023-04-17 18:08:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 18:08:05 +0200 |
commit | 3f9589f17e9e03aeb45b70f436c25227c728ba51 (patch) | |
tree | 347724e73ffcc1f437ee2665434d097ed1b5ea0c /src/build-remote/build-remote.cc | |
parent | 39e0f609cce54276ebfd9ac647364b49c73120b0 (diff) | |
parent | 24866b71c40f0fcb5a601d90d4f87366fe626090 (diff) |
Merge pull request #6312 from obsidiansystems/keyed-build-result
Shuffle `BuildResult` data definition, make state machine clearer, introduce `SingleDrvOutputs`
Diffstat (limited to 'src/build-remote/build-remote.cc')
-rw-r--r-- | src/build-remote/build-remote.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc index cfc4baaca..ce9c7f45a 100644 --- a/src/build-remote/build-remote.cc +++ b/src/build-remote/build-remote.cc @@ -311,8 +311,9 @@ connected: auto thisOutputId = DrvOutput{ thisOutputHash, outputName }; if (!store->queryRealisation(thisOutputId)) { debug("missing output %s", outputName); - assert(result.builtOutputs.count(thisOutputId)); - auto newRealisation = result.builtOutputs.at(thisOutputId); + auto i = result.builtOutputs.find(outputName); + assert(i != result.builtOutputs.end()); + auto & newRealisation = i->second; missingRealisations.insert(newRealisation); missingPaths.insert(newRealisation.outPath); } |