We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37c1ef5 commit 76d9f5dCopy full SHA for 76d9f5d
src/libstore/build/derivation-goal.cc
@@ -278,7 +278,12 @@ Goal::Co DerivationGoal::haveDerivation(bool storeDerivation)
278
}
279
280
281
- assert(success.builtOutputs.count(wantedOutput) > 0);
+ /* If the wanted output is not in builtOutputs (e.g., because it
282
+ was already valid and therefore not re-registered), we need to
283
+ add it ourselves to ensure we return the correct information. */
284
+ if (success.builtOutputs.count(wantedOutput) == 0) {
285
+ success.builtOutputs = {{wantedOutput, assertPathValidity()}};
286
+ }
287
288
289
0 commit comments