diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-29 11:35:37 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-30 17:17:09 +0200 |
commit | d551ef4acdf1732a145724b70f65be5fbe4052b0 (patch) | |
tree | 0cd3d2da73907d5d142b6b8c6b92304ed0a9a17e /src/buildtool/execution_api/local/local_response.hpp | |
parent | 8520a8fe2b2fc20940ed6457971a8de179343449 (diff) | |
download | justbuild-d551ef4acdf1732a145724b70f65be5fbe4052b0.tar.gz |
Replace bazel_re::Digest in LocalCAS::{...}Path
...with ArtifactDigest.
Diffstat (limited to 'src/buildtool/execution_api/local/local_response.hpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_response.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/buildtool/execution_api/local/local_response.hpp b/src/buildtool/execution_api/local/local_response.hpp index 21dd5952..68ab0bcc 100644 --- a/src/buildtool/execution_api/local/local_response.hpp +++ b/src/buildtool/execution_api/local/local_response.hpp @@ -43,8 +43,9 @@ class LocalResponse final : public IExecutionResponse { return (output_.action.stdout_digest().size_bytes() != 0); } auto StdErr() noexcept -> std::string final { - if (auto path = storage_.CAS().BlobPath(output_.action.stderr_digest(), - /*is_executable=*/false)) { + if (auto path = storage_.CAS().BlobPath( + static_cast<ArtifactDigest>(output_.action.stderr_digest()), + /*is_executable=*/false)) { if (auto content = FileSystemManager::ReadFile(*path)) { return std::move(*content); } @@ -53,8 +54,9 @@ class LocalResponse final : public IExecutionResponse { return {}; } auto StdOut() noexcept -> std::string final { - if (auto path = storage_.CAS().BlobPath(output_.action.stdout_digest(), - /*is_executable=*/false)) { + if (auto path = storage_.CAS().BlobPath( + static_cast<ArtifactDigest>(output_.action.stdout_digest()), + /*is_executable=*/false)) { if (auto content = FileSystemManager::ReadFile(*path)) { return std::move(*content); } |