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:
Eelco Dolstra 2017-07-14 14:23:38 +02:00
parent 15e8bd3bcb
commit 6438ba22af
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
5 changed files with 10 additions and 8 deletions

View file

@ -23,7 +23,7 @@ struct CmdBuild : MixDryRun, InstallablesCommand
void run(ref<Store> store) override
{
auto paths = buildInstallables(store, dryRun);
auto paths = toStorePaths(store, dryRun ? DryRun : Build);
printInfo("build result: %s", showPaths(paths));
}