mirror of
https://github.com/NixOS/nix
synced 2025-06-25 02:21:16 +02:00
Apply makeNotAllowedError to empty repos
This commit is contained in:
parent
70dcd738ef
commit
67e957b636
6 changed files with 45 additions and 12 deletions
|
@ -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)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue