Merge pull request #5253 from edolstra/flake-ifd

Don't allow IFD in flakes by default
This commit is contained in:
Eelco Dolstra
2021-09-24 10:48:23 +02:00
committed by GitHub
9 changed files with 41 additions and 24 deletions
+2 -1
View File
@@ -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. */