mirror of
https://github.com/NixOS/nix.git
synced 2025-11-25 11:49:35 +01:00
Remove setting from Input
This is more straightforward and not subject to undocumented memory safety restrictions. Also easier to test.
This commit is contained in:
parent
af0ac14021
commit
292bd390af
27 changed files with 181 additions and 168 deletions
|
|
@ -738,7 +738,7 @@ void NixRepl::loadFlake(const std::string & flakeRefS)
|
|||
}
|
||||
|
||||
auto flakeRef = parseFlakeRef(fetchSettings, flakeRefS, cwd.string(), true);
|
||||
if (evalSettings.pureEval && !flakeRef.input.isLocked())
|
||||
if (evalSettings.pureEval && !flakeRef.input.isLocked(fetchSettings))
|
||||
throw Error("cannot use ':load-flake' on locked flake reference '%s' (use --impure to override)", flakeRefS);
|
||||
|
||||
Value v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue