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
|
|
@ -214,7 +214,7 @@ std::vector<std::shared_ptr<Installable>> InstallablesCommand::parseInstallables
|
|||
return result;
|
||||
}
|
||||
|
||||
PathSet InstallablesCommand::buildInstallables(ref<Store> store, bool dryRun)
|
||||
PathSet InstallablesCommand::toStorePaths(ref<Store> store, ToStorePathsMode mode)
|
||||
{
|
||||
PathSet buildables;
|
||||
|
||||
|
|
@ -223,9 +223,9 @@ PathSet InstallablesCommand::buildInstallables(ref<Store> store, bool dryRun)
|
|||
buildables.insert(b.begin(), b.end());
|
||||
}
|
||||
|
||||
if (dryRun)
|
||||
if (mode == DryRun)
|
||||
printMissing(store, buildables);
|
||||
else
|
||||
else if (mode == Build)
|
||||
store->buildPaths(buildables);
|
||||
|
||||
PathSet outPaths;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue