mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 03:09:35 +01:00
Apply makeNotAllowedError to empty repos
This commit is contained in:
parent
002faa3d1c
commit
fcddf4afe3
5 changed files with 21 additions and 16 deletions
|
|
@ -304,7 +304,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