diff options
author | Sascha Roloff <sascha.roloff@huawei.com> | 2022-11-03 11:34:37 +0100 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2022-11-04 16:41:06 +0100 |
commit | e6d6c1b04434d02e01a4dca4d953674f4f110763 (patch) | |
tree | ce6102999d0f6bb5f178fa2b4e627887ab72eaf1 /src/buildtool/execution_api/local/local_action.cpp | |
parent | c592c7e83613647db2256ac5351e63d09e2d7858 (diff) | |
download | justbuild-e6d6c1b04434d02e01a4dca4d953674f4f110763.tar.gz |
Remove unwanted native protocol prefixes from user-visible locations
Diffstat (limited to 'src/buildtool/execution_api/local/local_action.cpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_action.cpp | 7 |
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; |