mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Fix #10947; don't cache disallowed IFD
This commit is contained in:
parent
32e6cc64b5
commit
fd94b74ee5
2 changed files with 17 additions and 2 deletions
|
@ -78,7 +78,7 @@ StringMap EvalState::realiseContext(const NixStringContext & context, StorePathS
|
|||
if (drvs.empty()) return {};
|
||||
|
||||
if (isIFD && !settings.enableImportFromDerivation)
|
||||
error<EvalError>(
|
||||
error<EvalBaseError>(
|
||||
"cannot build '%1%' during evaluation because the option 'allow-import-from-derivation' is disabled",
|
||||
drvs.begin()->to_string(*store)
|
||||
).debugThrow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue