From beb3faa6956b9bfd58d4ea6644a9b2987409aaba Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 5 Jul 2024 16:49:45 +0200 Subject: Use HashFunction functionality via Instance() ...to track changes during refactoring easier. --- src/other_tools/repo_map/TARGETS | 1 + src/other_tools/repo_map/repos_to_setup_map.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/other_tools/repo_map') diff --git a/src/other_tools/repo_map/TARGETS b/src/other_tools/repo_map/TARGETS index 1b2f23a0..89ea95fd 100644 --- a/src/other_tools/repo_map/TARGETS +++ b/src/other_tools/repo_map/TARGETS @@ -26,6 +26,7 @@ , ["src/other_tools/ops_maps", "content_cas_map"] , ["src/other_tools/ops_maps", "git_tree_fetch_map"] , ["src/other_tools/utils", "parse_archive"] + , ["src/buildtool/crypto", "hash_function"] ] } } diff --git a/src/other_tools/repo_map/repos_to_setup_map.cpp b/src/other_tools/repo_map/repos_to_setup_map.cpp index 7ccb73d9..d3519a27 100644 --- a/src/other_tools/repo_map/repos_to_setup_map.cpp +++ b/src/other_tools/repo_map/repos_to_setup_map.cpp @@ -18,6 +18,7 @@ #include // std::move #include "fmt/core.h" +#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/file_system/file_root.hpp" #include "src/buildtool/file_system/symlinks_map/pragma_special.hpp" #include "src/buildtool/logging/log_level.hpp" @@ -591,8 +592,8 @@ void DistdirCheckout(ExpressionPtr const& repo_desc, } // get hash of distdir content auto distdir_content_id = - HashFunction::ComputeBlobHash( - nlohmann::json(*distdir_content_for_id).dump()) + HashFunction::Instance() + .ComputeBlobHash(nlohmann::json(*distdir_content_for_id).dump()) .HexString(); // get the WS root as git tree DistdirInfo distdir_info = { -- cgit v1.2.3