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

View file

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