summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_response.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-02 10:50:48 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-09 13:07:13 +0200
commit7eafe5779703275d455558120efc754c2dcc3c01 (patch)
treee31168069ef2460f187652157fe3c03be698d9a8 /src/buildtool/execution_api/local/local_response.hpp
parent50bcabb0717dae7c8411db59115c41b7cc636cb3 (diff)
downloadjustbuild-7eafe5779703275d455558120efc754c2dcc3c01.tar.gz
Replace ArtifactDigest::Create
...with ArtifactDigestFactory::HashDataAs
Diffstat (limited to 'src/buildtool/execution_api/local/local_response.hpp')
-rw-r--r--src/buildtool/execution_api/local/local_response.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/buildtool/execution_api/local/local_response.hpp b/src/buildtool/execution_api/local/local_response.hpp
index 68ab0bcc..8e563c5d 100644
--- a/src/buildtool/execution_api/local/local_response.hpp
+++ b/src/buildtool/execution_api/local/local_response.hpp
@@ -20,6 +20,7 @@
#include <utility>
#include "gsl/gsl"
+#include "src/buildtool/common/artifact_digest_factory.hpp"
#include "src/buildtool/crypto/hash_function.hpp"
#include "src/buildtool/execution_api/common/execution_response.hpp"
#include "src/buildtool/execution_api/local/local_action.hpp"
@@ -140,8 +141,9 @@ class LocalResponse final : public IExecutionResponse {
artifacts.emplace(
link.path(),
Artifact::ObjectInfo{
- .digest = ArtifactDigest::Create<ObjectType::File>(
- storage_.GetHashFunction(), link.target()),
+ .digest =
+ ArtifactDigestFactory::HashDataAs<ObjectType::File>(
+ storage_.GetHashFunction(), link.target()),
.type = ObjectType::Symlink});
} catch (...) {
return;
@@ -152,8 +154,9 @@ class LocalResponse final : public IExecutionResponse {
artifacts.emplace(
link.path(),
Artifact::ObjectInfo{
- .digest = ArtifactDigest::Create<ObjectType::File>(
- storage_.GetHashFunction(), link.target()),
+ .digest =
+ ArtifactDigestFactory::HashDataAs<ObjectType::File>(
+ storage_.GetHashFunction(), link.target()),
.type = ObjectType::Symlink});
dir_symlinks.emplace(link.path()); // add it to set
} catch (...) {