1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 20:41:47 +02:00

Add an activity for copying sources to the store

Fixes #1184 since it's now visible in the progress bar which path is
taking a long time to copy.
This commit is contained in:
Eelco Dolstra 2022-08-12 12:20:09 +02:00
parent bb962381e9
commit f8bf44bf76

View file

@ -112,6 +112,8 @@ StorePath InputAccessor::fetchToStore(
} else } else
debug("source path '%s' is uncacheable", showPath(path)); debug("source path '%s' is uncacheable", showPath(path));
Activity act(*logger, lvlChatty, actUnknown, fmt("copying '%s' to the store", showPath(path)));
auto source = sinkToSource([&](Sink & sink) { auto source = sinkToSource([&](Sink & sink) {
dumpPath(path, sink, filter ? *filter : defaultPathFilter); dumpPath(path, sink, filter ? *filter : defaultPathFilter);
}); });