diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2022-07-11 19:55:10 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2022-08-05 14:41:31 +0200 |
commit | ee6f54124360d8a72b9b545dcc581f3c80d3c8a9 (patch) | |
tree | 20ab0e5e0e8132c30da0f99c401750d712fe00d0 /src/buildtool/execution_api/local/local_ac.hpp | |
parent | 76c17ffa9e079fdd3d2a7159c02a1d9593e11930 (diff) | |
download | justbuild-ee6f54124360d8a72b9b545dcc581f3c80d3c8a9.tar.gz |
Modified artifact digest to provide wire digest on demand
Diffstat (limited to 'src/buildtool/execution_api/local/local_ac.hpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_ac.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/local/local_ac.hpp b/src/buildtool/execution_api/local/local_ac.hpp index 08f384d8..c9659494 100644 --- a/src/buildtool/execution_api/local/local_ac.hpp +++ b/src/buildtool/execution_api/local/local_ac.hpp @@ -27,12 +27,14 @@ class LocalAC { auto bytes = result.SerializeAsString(); auto digest = cas_->StoreBlobFromBytes(bytes); return (digest and file_store_.AddFromBytes( - action_id.hash(), digest->SerializeAsString())); + NativeSupport::Unprefix(action_id.hash()), + digest->SerializeAsString())); } [[nodiscard]] auto CachedResult(bazel_re::Digest const& action_id) const noexcept -> std::optional<bazel_re::ActionResult> { - auto entry_path = file_store_.GetPath(action_id.hash()); + auto entry_path = + file_store_.GetPath(NativeSupport::Unprefix(action_id.hash())); bazel_re::Digest digest{}; auto const entry = FileSystemManager::ReadFile(entry_path, ObjectType::File); |