summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/execution_api.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-05-27 14:57:15 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-05-28 16:19:19 +0200
commitfd8ad0f561dd253bf7399ce9a4594242e918ca25 (patch)
treed72aa981cafc03d0f1aded827cb621fabe541fff /src/buildtool/execution_api/common/execution_api.cpp
parent9bdd30f307b83a3901250a51780f308f5c4a0065 (diff)
downloadjustbuild-fd8ad0f561dd253bf7399ce9a4594242e918ca25.tar.gz
Use ArtifactBlobContainer in IExecutionApi
...instead of BazelBlobContainer to not bring bazel_re::Digest to IExecutionApi.
Diffstat (limited to 'src/buildtool/execution_api/common/execution_api.cpp')
-rw-r--r--src/buildtool/execution_api/common/execution_api.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/common/execution_api.cpp b/src/buildtool/execution_api/common/execution_api.cpp
index b6b16a0f..d3fcb36f 100644
--- a/src/buildtool/execution_api/common/execution_api.cpp
+++ b/src/buildtool/execution_api/common/execution_api.cpp
@@ -43,13 +43,13 @@
Ensures(false); // unreachable
return false;
}
- BazelBlobContainer container{};
+ ArtifactBlobContainer container{};
try {
auto exec = IsExecutableObject(type);
- container.Emplace(BazelBlob{digest, *data, exec});
+ container.Emplace(ArtifactBlob{digest, *data, exec});
} catch (std::exception const& ex) {
Logger::Log(LogLevel::Error, "failed to emplace blob: ", ex.what());
return false;
}
- return Upload(container);
+ return Upload(std::move(container));
}