summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_engine/executor/executor.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-08-29 11:55:07 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-08-30 17:17:09 +0200
commit3a771602f8ee6c7940208d447463061aa9b6af8c (patch)
tree491e86926da47d9365a49a3ecdd35dbcd48c1364 /src/buildtool/execution_engine/executor/executor.hpp
parent60daf819bbe7db97064c7e102acedbf3cd693410 (diff)
downloadjustbuild-3a771602f8ee6c7940208d447463061aa9b6af8c.tar.gz
Return the IsTree flag from ArtifactDigest
...and replace obvious redundant conversions to bazel_re::Digest, which were done to ensure that the digest represents a tree.
Diffstat (limited to 'src/buildtool/execution_engine/executor/executor.hpp')
-rw-r--r--src/buildtool/execution_engine/executor/executor.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/buildtool/execution_engine/executor/executor.hpp b/src/buildtool/execution_engine/executor/executor.hpp
index 26e415b1..ad2fefea 100644
--- a/src/buildtool/execution_engine/executor/executor.hpp
+++ b/src/buildtool/execution_engine/executor/executor.hpp
@@ -351,8 +351,7 @@ class ExecutorImpl {
Artifact::ObjectInfo const& info,
std::string const& hash) noexcept -> bool {
std::optional<std::string> content;
- if (NativeSupport::IsTree(
- static_cast<bazel_re::Digest>(info.digest).hash())) {
+ if (info.digest.IsTree()) {
// if known tree is not available, recursively upload its content
auto tree = ReadGitTree(repo, repo_config, hash);
if (not tree) {