diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-05-27 14:57:15 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-05-28 16:19:19 +0200 |
commit | fd8ad0f561dd253bf7399ce9a4594242e918ca25 (patch) | |
tree | d72aa981cafc03d0f1aded827cb621fabe541fff /src/buildtool/execution_api/common/execution_api.cpp | |
parent | 9bdd30f307b83a3901250a51780f308f5c4a0065 (diff) | |
download | justbuild-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.cpp | 6 |
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)); } |