diff options
author | regnat <rg@regnat.ovh> | 2021-12-13 16:56:44 +0100 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-12-13 17:02:13 +0100 |
commit | 55dbb7f1ccc0e991df6b09af0a16ce9246ac3f19 (patch) | |
tree | b1ff7424aa2a6ee465c407ae6e9e1abe2315a0c7 /src/libstore/build/derivation-goal.hh | |
parent | f133001dc8c849053b8af9933902d11f274426bd (diff) |
More properly track the status of CA builds
Make the build of unresolved derivations return the same status as the
resolved one, except in the case of an `AlreadyValid` in which case it
will return `ResolvesToAlreadyValid` to mean that the outputs of the unresolved
derivation weren’t known, but the resolved one is.
Diffstat (limited to 'src/libstore/build/derivation-goal.hh')
-rw-r--r-- | src/libstore/build/derivation-goal.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build/derivation-goal.hh b/src/libstore/build/derivation-goal.hh index 704b77caf..e112542c7 100644 --- a/src/libstore/build/derivation-goal.hh +++ b/src/libstore/build/derivation-goal.hh @@ -50,8 +50,8 @@ struct DerivationGoal : public Goal /* The path of the derivation. */ StorePath drvPath; - /* The path of the corresponding resolved derivation */ - std::optional<BasicDerivation> resolvedDrv; + /* The goal for the corresponding resolved derivation */ + std::shared_ptr<DerivationGoal> resolvedDrvGoal; /* The specific outputs that we need to build. Empty means all of them. */ |