mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
Don't cache realiseContext() errors
Errors that depend on the configuration (such as whether allow-import-from-derivation is set) should not be cached.
This commit is contained in:
parent
bcd73ebf60
commit
ff28fffce2
@ -52,7 +52,8 @@ void EvalState::realiseContext(const PathSet & context)
|
||||
if (drvs.empty()) return;
|
||||
|
||||
if (!evalSettings.enableImportFromDerivation)
|
||||
throw EvalError("attempted to realize '%1%' during evaluation but 'allow-import-from-derivation' is false",
|
||||
throw Error(
|
||||
"cannot build '%1%' during evaluation because the option 'allow-import-from-derivation' is disabled",
|
||||
store->printStorePath(drvs.begin()->drvPath));
|
||||
|
||||
/* For performance, prefetch all substitute info. */
|
||||
|
Loading…
Reference in New Issue
Block a user