Merge pull request #5914 from NixOS/5911-fix-nix-why-depends-pager

Start the pager early-enough in `nix why-depends`
This commit is contained in:
Eelco Dolstra 2022-01-17 10:10:31 +01:00 committed by GitHub
commit bb24d1edd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -239,7 +239,6 @@ struct CmdWhyDepends : SourceExprCommand
visitPath(pathS);
RunPager pager;
for (auto & ref : refs) {
std::string hash(ref.second->path.hashPart());
@ -259,6 +258,7 @@ struct CmdWhyDepends : SourceExprCommand
}
};
RunPager pager;
try {
printNode(graph.at(packagePath), "", "");
} catch (BailOut & ) { }