mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
getDerivation(): Don't always quietly ignore assertion failure
Ignoring assertion failures makes some sense for nix-env -qa, but not for nix-instantiate/nix-build or hydra-eval-jobs.
This commit is contained in:
parent
ad328bea15
commit
70f75be199
5 changed files with 27 additions and 21 deletions
|
@ -25,7 +25,7 @@ DrvInfos queryInstalled(EvalState & state, const Path & userEnv)
|
|||
Value v;
|
||||
state.evalFile(manifestFile, v);
|
||||
Bindings bindings;
|
||||
getDerivations(state, v, "", bindings, elems);
|
||||
getDerivations(state, v, "", bindings, elems, false);
|
||||
} else if (pathExists(oldManifestFile))
|
||||
readLegacyManifest(oldManifestFile, elems);
|
||||
|
||||
|
@ -127,7 +127,7 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
|
|||
/* Evaluate it. */
|
||||
debug("evaluating user environment builder");
|
||||
DrvInfo topLevelDrv;
|
||||
if (!getDerivation(state, topLevel, topLevelDrv))
|
||||
if (!getDerivation(state, topLevel, topLevelDrv, false))
|
||||
abort();
|
||||
|
||||
/* Realise the resulting store expression. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue