summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/object_cas.hpp
diff options
context:
space:
mode:
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(