1
0
Fork 0
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:
Robert Hensing 2024-06-29 13:19:04 +02:00
parent 32e6cc64b5
commit fd94b74ee5
2 changed files with 17 additions and 2 deletions

View file

@ -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();