mirror of
https://github.com/NixOS/nix
synced 2025-06-28 09:31:16 +02:00
Use named field initialization for references
This commit is contained in:
parent
8623143921
commit
6a168254ce
15 changed files with 34 additions and 26 deletions
|
@ -1249,7 +1249,7 @@ static void prim_derivationStrict(EvalState & state, const PosIdx pos, Value * *
|
|||
.method = method,
|
||||
.hash = h,
|
||||
},
|
||||
{},
|
||||
.references = {},
|
||||
});
|
||||
drv.env["out"] = state.store->printStorePath(outPath);
|
||||
drv.outputs.insert_or_assign("out",
|
||||
|
|
|
@ -235,7 +235,7 @@ static void fetch(EvalState & state, const PosIdx pos, Value * * args, Value & v
|
|||
.method = unpack ? FileIngestionMethod::Recursive : FileIngestionMethod::Flat,
|
||||
.hash = *expectedHash,
|
||||
},
|
||||
{}
|
||||
.references = {}
|
||||
});
|
||||
|
||||
if (state.store->isValidPath(expectedPath)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue