mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 09:19:36 +01:00
Fix #10947; don't cache disallowed IFD
(cherry picked from commit fd94b74ee5)
This commit is contained in:
parent
53a5266220
commit
6432c21b01
2 changed files with 17 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ StringMap EvalState::realiseContext(const NixStringContext & context, StorePathS
|
|||
if (drvs.empty()) return {};
|
||||
|
||||
if (isIFD && !evalSettings.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