aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/worker.hh
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-07-26 20:19:21 +0200
committereldritch horrors <pennae@lix.systems>2024-08-02 13:52:15 +0000
commite5177dddff13e7e5bb1bdecf28776822c6dba528 (patch)
tree16245e3f8424990787c0195449e3dde356db5259 /src/libstore/build/worker.hh
parentdfcab1c3f09971cba6a198ba81158d1190975165 (diff)
libstore: move Goal::amDone to Worker
we still mutate goal state to store the results of any given goal run, but now we also have that information in Worker and could in theory do something else with it. we could return a map of goal to goal results, which would also let us better diagnose failures of subgoals (at all). Change-Id: I1df956bbd9fa8cc9485fb6df32918d68dda3ff48
Diffstat (limited to 'src/libstore/build/worker.hh')
-rw-r--r--src/libstore/build/worker.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstore/build/worker.hh b/src/libstore/build/worker.hh
index 903380c45..5af93b49e 100644
--- a/src/libstore/build/worker.hh
+++ b/src/libstore/build/worker.hh
@@ -105,6 +105,9 @@ private:
*/
std::map<StorePath, bool> pathContentsGoodCache;
+ void goalFinished(GoalPtr goal, Goal::Finished & f);
+ void handleWorkResult(GoalPtr goal, Goal::WorkResult how);
+
public:
const Activity act;