aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/derivation-goal.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-11-18 14:36:15 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-12-01 13:44:48 +0100
commit3b7e00ce2215b742d9fdb1b8d4a4d76d349028c7 (patch)
tree9be69f21905dbac3bb5f9e02529684c8d80d170c /src/libstore/build/derivation-goal.hh
parent59276244738ebec32ed0593ee4af615852ff564d (diff)
Move primeCache() to Worker::run()
We need the missing path info to communicate the worker's remaining goals to the progress bar.
Diffstat (limited to 'src/libstore/build/derivation-goal.hh')
-rw-r--r--src/libstore/build/derivation-goal.hh12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/libstore/build/derivation-goal.hh b/src/libstore/build/derivation-goal.hh
index 4976207e0..8ee0be9e1 100644
--- a/src/libstore/build/derivation-goal.hh
+++ b/src/libstore/build/derivation-goal.hh
@@ -40,9 +40,8 @@ struct InitialOutput {
std::optional<InitialOutputStatus> known;
};
-class DerivationGoal : public Goal
+struct DerivationGoal : public Goal
{
-private:
/* Whether to use an on-disk .drv file. */
bool useDerivation;
@@ -246,7 +245,6 @@ private:
friend struct RestrictedStore;
-public:
DerivationGoal(const StorePath & drvPath,
const StringSet & wantedOutputs, Worker & worker,
BuildMode buildMode = bmNormal);
@@ -264,17 +262,11 @@ public:
void work() override;
- StorePath getDrvPath()
- {
- return drvPath;
- }
-
/* Add wanted outputs to an already existing derivation goal. */
void addWantedOutputs(const StringSet & outputs);
BuildResult getResult() { return result; }
-private:
/* The states. */
void getDerivation();
void loadDerivation();
@@ -318,8 +310,6 @@ private:
/* Run the builder's process. */
void runChild();
- friend int childEntry(void *);
-
/* Check that the derivation outputs all exist and register them
as valid. */
void registerOutputs();