StorePathsCommand: Don't build installables
On second though this was annoying. E.g. "nix log nixpkgs.hello" would build/download Hello first, even though the log can be fetched directly from the binary cache. May need to revisit this.
This commit is contained in:
parent
15e8bd3bcb
commit
6438ba22af
5 changed files with 10 additions and 8 deletions
|
|
@ -115,7 +115,7 @@ void StorePathsCommand::run(ref<Store> store)
|
|||
}
|
||||
|
||||
else {
|
||||
for (auto & p : buildInstallables(store, false))
|
||||
for (auto & p : toStorePaths(store, NoBuild))
|
||||
storePaths.push_back(p);
|
||||
|
||||
if (recursive) {
|
||||
|
|
@ -131,7 +131,7 @@ void StorePathsCommand::run(ref<Store> store)
|
|||
|
||||
void StorePathCommand::run(ref<Store> store)
|
||||
{
|
||||
auto storePaths = buildInstallables(store, false);
|
||||
auto storePaths = toStorePaths(store, NoBuild);
|
||||
|
||||
if (storePaths.size() != 1)
|
||||
throw UsageError("this command requires exactly one store path");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue