diff --git a/src/nix/path-info.cc b/src/nix/path-info.cc index 47caa401d..492d80ed5 100644 --- a/src/nix/path-info.cc +++ b/src/nix/path-info.cc @@ -78,7 +78,10 @@ struct CmdPathInfo : StorePathsCommand, MixJSON auto info = store->queryPathInfo(storePath); storePath = info->path; // FIXME: screws up padding - std::cout << storePath << std::string(std::max(0, (int) pathLen - (int) storePath.size()), ' '); + std::cout << storePath; + + if (showSize || showClosureSize || showSigs) + std::cout << std::string(std::max(0, (int) pathLen - (int) storePath.size()), ' '); if (showSize) std::cout << '\t' << std::setw(11) << info->narSize;