mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
Interpret absolute paths relative to the root FS rather than the current flake
This commit is contained in:
parent
e2353b9b45
commit
0402dd0298
4 changed files with 27 additions and 3 deletions
|
@ -472,7 +472,7 @@ EvalState::EvalState(
|
|||
: std::nullopt,
|
||||
[](const CanonPath & path) -> RestrictedPathError {
|
||||
auto modeInformation = evalSettings.pureEval
|
||||
? "in pure eval mode (use '--impure' to override)"
|
||||
? "in pure evaluation mode (use '--impure' to override)"
|
||||
: "in restricted mode";
|
||||
throw RestrictedPathError("access to absolute path '%1%' is forbidden %2%", path, modeInformation);
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue