1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-11 11:31:03 +01:00

Store the output hashes in the initialOutputs of the drv goal

That way we
1. Don't have to recompute them several times
2. Can compute them in a place where we know the type of the parent
  derivation, meaning that we don't need the casting dance we had before
This commit is contained in:
regnat 2021-02-04 14:41:49 +01:00 committed by Théophane Hufschmitt
parent 0bfbd04369
commit 4bc28c44f2
2 changed files with 30 additions and 20 deletions

View file

@ -37,6 +37,7 @@ struct InitialOutputStatus {
struct InitialOutput {
bool wanted;
Hash outputHash;
std::optional<InitialOutputStatus> known;
};