mirror of
https://github.com/NixOS/nix
synced 2025-07-04 23:51:47 +02:00
Don't allow __final in fetchTree
It's now only allowed in fetchFinalTree, which is not exposed to users but only to call-flake.nix.
This commit is contained in:
parent
d90b56d527
commit
4dceca51de
7 changed files with 55 additions and 9 deletions
|
@ -234,4 +234,11 @@ void emitTreeAttrs(
|
|||
bool emptyRevFallback = false,
|
||||
bool forceDirty = false);
|
||||
|
||||
/**
|
||||
* An internal builtin similar to `fetchTree`, except that it
|
||||
* always treats the input as final (i.e. no attributes can be
|
||||
* added/removed/changed).
|
||||
*/
|
||||
void prim_fetchFinalTree(EvalState & state, const PosIdx pos, Value * * args, Value & v);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue