From 7eafe5779703275d455558120efc754c2dcc3c01 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 2 Sep 2024 10:50:48 +0200 Subject: Replace ArtifactDigest::Create ...with ArtifactDigestFactory::HashDataAs --- src/buildtool/execution_api/local/local_response.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/buildtool/execution_api/local/local_response.hpp') 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 #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( - storage_.GetHashFunction(), link.target()), + .digest = + ArtifactDigestFactory::HashDataAs( + 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( - storage_.GetHashFunction(), link.target()), + .digest = + ArtifactDigestFactory::HashDataAs( + storage_.GetHashFunction(), link.target()), .type = ObjectType::Symlink}); dir_symlinks.emplace(link.path()); // add it to set } catch (...) { -- cgit v1.2.3