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
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) {
dumpPath(path, sink, filter ? *filter : defaultPathFilter);
});