diff options
author | alois31 <alois1@gmx-topmail.de> | 2024-05-09 04:32:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix-systems> | 2024-05-09 04:32:55 +0000 |
commit | da0e1f5716be8e983faf4d507af08283e273f2b7 (patch) | |
tree | 48d27115f507bb36cf3d45f0c694e26594634684 /src | |
parent | 8552519bb81fc2ee2d11e76594fd7de9393f4fe9 (diff) | |
parent | 243c0f18dae2a08ea0e46f7ff33277c63f7506d7 (diff) |
Merge "repl: show a progress bar while performing builds" into main
Diffstat (limited to 'src')
-rw-r--r-- | src/libcmd/repl.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc index 9811ea30c..696bb3c12 100644 --- a/src/libcmd/repl.cc +++ b/src/libcmd/repl.cc @@ -605,6 +605,14 @@ ProcessLineResult NixRepl::processLine(std::string line) Path drvPathRaw = state->store->printStorePath(drvPath); if (command == ":b" || command == ":bl") { + // TODO: this only shows a progress bar for explicitly initiated builds, + // not eval-time fetching or builds performed for IFD. + // But we can't just show it everywhere, since that would erase partial output from evaluation. + startProgressBar(); + Finally stopLogger([&]() { + stopProgressBar(); + }); + state->store->buildPaths({ DerivedPath::Built { .drvPath = makeConstantStorePathRef(drvPath), |