From 57d3222a4ff1ab3cc64e0d33d721a30827b684e3 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 26 Jul 2023 14:43:52 +0200 Subject: remote api: honor the --raw-tree option --- src/buildtool/execution_api/remote/bazel/bazel_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp') diff --git a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp index f4fd3b1f..c4f170a3 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp @@ -142,7 +142,7 @@ auto BazelApi::CreateAction( [[nodiscard]] auto BazelApi::RetrieveToFds( std::vector const& artifacts_info, std::vector const& fds, - bool /*raw_tree*/) noexcept -> bool { + bool raw_tree) noexcept -> bool { if (artifacts_info.size() != fds.size()) { Logger::Log(LogLevel::Error, "different number of digests and file descriptors."); @@ -154,7 +154,7 @@ auto BazelApi::CreateAction( auto const& info = artifacts_info[i]; if (gsl::owner out = fdopen(fd, "wb")) { // NOLINT - auto const success = network_->DumpToStream(info, out); + auto const success = network_->DumpToStream(info, out, raw_tree); std::fclose(out); if (not success) { Logger::Log(LogLevel::Error, -- cgit v1.2.3