summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api/local/local_action.cpp')
-rw-r--r--src/buildtool/execution_api/local/local_action.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/local/local_action.cpp b/src/buildtool/execution_api/local/local_action.cpp
index f5bec696..19842f9c 100644
--- a/src/buildtool/execution_api/local/local_action.cpp
+++ b/src/buildtool/execution_api/local/local_action.cpp
@@ -59,7 +59,7 @@ auto LocalAction::Execute(Logger const* logger) noexcept
"start execution\n"
" - exec_dir digest: {}\n"
" - action digest: {}",
- static_cast<bazel_re::Digest>(root_digest_).hash(),
+ root_digest_.hash(),
action.hash());
}
@@ -93,8 +93,9 @@ auto LocalAction::Execute(Logger const* logger) noexcept
auto LocalAction::Run(bazel_re::Digest const& action_id) const noexcept
-> std::optional<Output> {
- auto exec_path = CreateUniquePath(LocalExecutionConfig::CacheRoot() /
- "exec_root" / action_id.hash());
+ auto exec_path =
+ CreateUniquePath(LocalExecutionConfig::CacheRoot() / "exec_root" /
+ NativeSupport::Unprefix(action_id.hash()));
if (not exec_path) {
return std::nullopt;