mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
nix-shell: Replace resolving failure error by an assertion
This shouldn’t happen in practice, so better make it explicit
This commit is contained in:
parent
56605b4688
commit
3b58dbb356
1 changed files with 1 additions and 2 deletions
|
@ -389,8 +389,7 @@ static void main_nix_build(int argc, char * * argv)
|
|||
|
||||
if (settings.isExperimentalFeatureEnabled("ca-derivations")) {
|
||||
auto resolvedDrv = drv.tryResolve(*store);
|
||||
if (!resolvedDrv)
|
||||
throw Error("unable to resolve the derivation '%s'. nix-shell can’t continue", drvInfo.queryDrvPath());
|
||||
assert(resolvedDrv && "Successfully resolved the derivation");
|
||||
drv = *resolvedDrv;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue