aboutsummaryrefslogtreecommitdiff
path: root/src/nix/path-info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/path-info.cc')
-rw-r--r--src/nix/path-info.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc
index b14eef467..05578ea53 100644
--- a/src/nix/path-info.cc
+++ b/src/nix/path-info.cc
@@ -82,6 +82,10 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
void run(ref<Store> store, StorePaths && storePaths) override
{
+ // Wipe the progress bar to prevent interference with the output.
+ // It's not needed any more because expensive evaluation or builds are already done here.
+ logger->pause();
+
size_t pathLen = 0;
for (auto & storePath : storePaths)
pathLen = std::max(pathLen, store->printStorePath(storePath).size());