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:
parent
0bfbd04369
commit
4bc28c44f2
2 changed files with 30 additions and 20 deletions
|
|
@ -37,6 +37,7 @@ struct InitialOutputStatus {
|
|||
|
||||
struct InitialOutput {
|
||||
bool wanted;
|
||||
Hash outputHash;
|
||||
std::optional<InitialOutputStatus> known;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue