diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-07-14 12:58:41 +0200 |
---|---|---|
committer | Sascha Roloff <sascha.roloff@huawei.com> | 2022-08-05 14:41:31 +0200 |
commit | 8594b00243aa95f6bea9a45bfcfa55d2d71d4b48 (patch) | |
tree | ed8e37581ef958756f13bbd6b36c485bc48b6d44 /src/buildtool/execution_api/remote/bazel/bazel_response.cpp | |
parent | ada05a0949f3865bf625455088f30d2d32c44d29 (diff) | |
download | justbuild-8594b00243aa95f6bea9a45bfcfa55d2d71d4b48.tar.gz |
ExecutionResponse: Fix artifacts reserve size
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.cpp')
-rw-r--r-- | src/buildtool/execution_api/remote/bazel/bazel_response.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp index 8b75a767..2dbb7653 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp @@ -18,7 +18,8 @@ auto BazelResponse::Artifacts() const noexcept -> ArtifactInfos { ArtifactInfos artifacts{}; auto const& action_result = output_.action_result; artifacts.reserve( - static_cast<std::size_t>(action_result.output_files().size())); + static_cast<std::size_t>(action_result.output_files().size()) + + static_cast<std::size_t>(action_result.output_directories().size())); // collect files and store them for (auto const& file : action_result.output_files()) { |