diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-02 10:50:48 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-09 13:07:13 +0200 |
commit | 7eafe5779703275d455558120efc754c2dcc3c01 (patch) | |
tree | e31168069ef2460f187652157fe3c03be698d9a8 /src/buildtool/execution_api/remote/bazel/bazel_response.cpp | |
parent | 50bcabb0717dae7c8411db59115c41b7cc636cb3 (diff) | |
download | justbuild-7eafe5779703275d455558120efc754c2dcc3c01.tar.gz |
Replace ArtifactDigest::Create
...with ArtifactDigestFactory::HashDataAs
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.cpp')
-rw-r--r-- | src/buildtool/execution_api/remote/bazel/bazel_response.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp index aa4a64b6..a5ac6ff1 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp @@ -17,6 +17,7 @@ #include <cstddef> #include "gsl/gsl" +#include "src/buildtool/common/artifact_digest_factory.hpp" #include "src/buildtool/common/bazel_digest_factory.hpp" #include "src/buildtool/compatibility/native_support.hpp" #include "src/buildtool/crypto/hash_function.hpp" @@ -104,8 +105,9 @@ void BazelResponse::Populate() noexcept { artifacts.emplace( link.path(), Artifact::ObjectInfo{ - .digest = ArtifactDigest::Create<ObjectType::File>( - network_->GetHashFunction(), link.target()), + .digest = + ArtifactDigestFactory::HashDataAs<ObjectType::File>( + network_->GetHashFunction(), link.target()), .type = ObjectType::Symlink}); } catch (...) { return; @@ -116,8 +118,9 @@ void BazelResponse::Populate() noexcept { artifacts.emplace( link.path(), Artifact::ObjectInfo{ - .digest = ArtifactDigest::Create<ObjectType::File>( - network_->GetHashFunction(), link.target()), + .digest = + ArtifactDigestFactory::HashDataAs<ObjectType::File>( + network_->GetHashFunction(), link.target()), .type = ObjectType::Symlink}); dir_symlinks.emplace(link.path()); // add it to set } catch (...) { |