From e6d6c1b04434d02e01a4dca4d953674f4f110763 Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Thu, 3 Nov 2022 11:34:37 +0100 Subject: Remove unwanted native protocol prefixes from user-visible locations --- src/buildtool/execution_api/local/local_action.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/buildtool/execution_api/local/local_action.cpp') 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(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 { - 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; -- cgit v1.2.3