summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/storage/TARGETS1
-rw-r--r--src/buildtool/storage/fs_utils.cpp3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/buildtool/storage/TARGETS b/src/buildtool/storage/TARGETS
index c5d1fb9c..c4377581 100644
--- a/src/buildtool/storage/TARGETS
+++ b/src/buildtool/storage/TARGETS
@@ -110,7 +110,6 @@
, ["src/buildtool/logging", "log_level"]
, ["src/buildtool/logging", "logging"]
, ["src/utils/cpp", "path"]
- , ["src/buildtool/crypto", "hash_function"]
]
}
, "file_chunker":
diff --git a/src/buildtool/storage/fs_utils.cpp b/src/buildtool/storage/fs_utils.cpp
index 2db157fb..05d6bbb8 100644
--- a/src/buildtool/storage/fs_utils.cpp
+++ b/src/buildtool/storage/fs_utils.cpp
@@ -19,7 +19,6 @@
#include <utility>
#include "nlohmann/json.hpp"
-#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/file_system/file_system_manager.hpp"
#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
@@ -77,7 +76,7 @@ auto GetForeignFileTreeIDFile(StorageConfig const& storage_config,
-> std::filesystem::path {
return GetDistdirTreeIDFile(
storage_config,
- HashFunction::Instance()
+ storage_config.hash_function
.ComputeBlobHash(
nlohmann::json(std::unordered_map<std::string,
std::pair<std::string, bool>>{