1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 14:10:59 +01:00

Apply makeNotAllowedError to empty repos

(cherry picked from commit 67e957b636)
This commit is contained in:
Eelco Dolstra 2025-04-01 15:19:46 +02:00 committed by Mergify
parent b9ad90d447
commit 5f74cf9b7a
6 changed files with 45 additions and 12 deletions

View file

@ -273,7 +273,7 @@ EvalState::EvalState(
/* Apply access control if needed. */
if (settings.restrictEval || settings.pureEval)
accessor = AllowListSourceAccessor::create(accessor, {},
accessor = AllowListSourceAccessor::create(accessor, {}, {},
[&settings](const CanonPath & path) -> RestrictedPathError {
auto modeInformation = settings.pureEval
? "in pure evaluation mode (use '--impure' to override)"