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, 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());