summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_response.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-19 13:04:12 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 17:01:13 +0200
commit7d7f4de4e43713c13c34029832347bac8162a1c7 (patch)
tree896f7b7f1eb6fb47517a000857b7eaa9c8fa2dd6 /src/buildtool/execution_api/local/local_response.hpp
parentb2dff03c841f159b474f445eb558a4ee153b1741 (diff)
downloadjustbuild-7d7f4de4e43713c13c34029832347bac8162a1c7.tar.gz
Use HashFunction from Storage in LocalResponse
Diffstat (limited to 'src/buildtool/execution_api/local/local_response.hpp')
-rw-r--r--src/buildtool/execution_api/local/local_response.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buildtool/execution_api/local/local_response.hpp b/src/buildtool/execution_api/local/local_response.hpp
index c6214320..d0ad27bd 100644
--- a/src/buildtool/execution_api/local/local_response.hpp
+++ b/src/buildtool/execution_api/local/local_response.hpp
@@ -140,7 +140,7 @@ class LocalResponse final : public IExecutionResponse {
link.path(),
Artifact::ObjectInfo{
.digest = ArtifactDigest::Create<ObjectType::File>(
- HashFunction::Instance(), link.target()),
+ storage_.GetHashFunction(), link.target()),
.type = ObjectType::Symlink});
} catch (...) {
return false;
@@ -152,7 +152,7 @@ class LocalResponse final : public IExecutionResponse {
link.path(),
Artifact::ObjectInfo{
.digest = ArtifactDigest::Create<ObjectType::File>(
- HashFunction::Instance(), link.target()),
+ storage_.GetHashFunction(), link.target()),
.type = ObjectType::Symlink});
dir_symlinks.emplace(link.path()); // add it to set
} catch (...) {
@@ -167,7 +167,7 @@ class LocalResponse final : public IExecutionResponse {
link.path(),
Artifact::ObjectInfo{
.digest = ArtifactDigest::Create<ObjectType::File>(
- HashFunction::Instance(), link.target()),
+ storage_.GetHashFunction(), link.target()),
.type = ObjectType::Symlink});
} catch (...) {
return false;
@@ -179,7 +179,7 @@ class LocalResponse final : public IExecutionResponse {
link.path(),
Artifact::ObjectInfo{
.digest = ArtifactDigest::Create<ObjectType::File>(
- HashFunction::Instance(), link.target()),
+ storage_.GetHashFunction(), link.target()),
.type = ObjectType::Symlink});
} catch (...) {
return false;