summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/object_cas.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-08-28 14:43:23 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-09 13:07:13 +0200
commit50bcabb0717dae7c8411db59115c41b7cc636cb3 (patch)
tree1c91538e21a6ad6a723c37909d5746ca5217af4a /src/buildtool/file_system/object_cas.hpp
parent1afa257e0f808f670c1ea87983bf76db89c63124 (diff)
downloadjustbuild-50bcabb0717dae7c8411db59115c41b7cc636cb3.tar.gz
Replace ArtifactDigest::CreateFromFile
...with ArtifactDigestFactory::HashFileAs
Diffstat (limited to 'src/buildtool/file_system/object_cas.hpp')
-rw-r--r--src/buildtool/file_system/object_cas.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/file_system/object_cas.hpp b/src/buildtool/file_system/object_cas.hpp
index d8ea71a2..79ba70da 100644
--- a/src/buildtool/file_system/object_cas.hpp
+++ b/src/buildtool/file_system/object_cas.hpp
@@ -23,6 +23,7 @@
#include "gsl/gsl"
#include "src/buildtool/common/artifact_digest.hpp"
+#include "src/buildtool/common/artifact_digest_factory.hpp"
#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/file_system/file_storage.hpp"
#include "src/buildtool/file_system/file_system_manager.hpp"
@@ -129,7 +130,8 @@ class ObjectCAS {
[[nodiscard]] auto CreateDigest(std::filesystem::path const& file_path)
const noexcept -> std::optional<ArtifactDigest> {
- return ArtifactDigest::CreateFromFile<kType>(hash_function_, file_path);
+ return ArtifactDigestFactory::HashFileAs<kType>(hash_function_,
+ file_path);
}
[[nodiscard]] auto IsAvailable(