mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Refactoring: Add allowPath() method
This commit is contained in:
parent
c9ee634f75
commit
cfaad7168e
7 changed files with 21 additions and 17 deletions
|
@ -64,8 +64,7 @@ static std::tuple<fetchers::Tree, FlakeRef, FlakeRef> fetchOrSubstituteTree(
|
|||
debug("got tree '%s' from '%s'",
|
||||
state.store->printStorePath(tree.storePath), lockedRef);
|
||||
|
||||
if (state.allowedPaths)
|
||||
state.allowedPaths->insert(tree.actualPath);
|
||||
state.allowPath(tree.actualPath);
|
||||
|
||||
assert(!originalRef.input.getNarHash() || tree.storePath == originalRef.input.computeStorePath(*state.store));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue