summaryrefslogtreecommitdiff
path: root/src/other_tools/ops_maps/archive_fetch_map.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-11 12:19:15 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-11 14:52:07 +0200
commit09a400e7a6ae4882ef770bf7eba3887050601ee8 (patch)
tree2d54d6ff3985619d47ce8ae423853afc51f4ca3f /src/other_tools/ops_maps/archive_fetch_map.hpp
parentc34e0b72616c99a4704efc3950351c84487903ca (diff)
downloadjustbuild-09a400e7a6ae4882ef770bf7eba3887050601ee8.tar.gz
Store HashInfo in just-mr's ArchiveContent as content hash
...and use it to create ArtifactDigests.
Diffstat (limited to 'src/other_tools/ops_maps/archive_fetch_map.hpp')
-rw-r--r--src/other_tools/ops_maps/archive_fetch_map.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/other_tools/ops_maps/archive_fetch_map.hpp b/src/other_tools/ops_maps/archive_fetch_map.hpp
index 3c4ed82c..e1c26b45 100644
--- a/src/other_tools/ops_maps/archive_fetch_map.hpp
+++ b/src/other_tools/ops_maps/archive_fetch_map.hpp
@@ -22,6 +22,7 @@
#include <string>
#include "gsl/gsl"
+#include "src/buildtool/crypto/hash_info.hpp"
#include "src/buildtool/execution_api/common/execution_api.hpp"
#include "src/buildtool/storage/storage.hpp"
#include "src/other_tools/just_mr/progress_reporting/statistics.hpp"
@@ -41,7 +42,8 @@ using ArchiveFetchMap = AsyncMapConsumer<ArchiveContent, bool>;
// use explicit cast to std::function to allow template deduction when used
static const std::function<std::string(ArchiveContent const&)>
- kArchiveContentPrinter =
- [](ArchiveContent const& x) -> std::string { return x.content; };
+ kArchiveContentPrinter = [](ArchiveContent const& x) -> std::string {
+ return x.content_hash.Hash();
+};
#endif // INCLUDED_SRC_OTHER_TOOLS_OPS_MAPS_ARCHIVE_FETCH_MAP_HPP