From d8d7ad69387bd59cf5369f2406d53a8c6a1438ef Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Tue, 21 Nov 2023 14:20:24 +0100 Subject: LocalAction: Fix staging of empty trees (cherry picked from bab0d949d51fe4f10c8d492083427d514206cb63) --- src/buildtool/execution_api/local/local_action.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/buildtool/execution_api/local/local_action.hpp') diff --git a/src/buildtool/execution_api/local/local_action.hpp b/src/buildtool/execution_api/local/local_action.hpp index 82101016..c4d9ecd1 100644 --- a/src/buildtool/execution_api/local/local_action.hpp +++ b/src/buildtool/execution_api/local/local_action.hpp @@ -101,16 +101,16 @@ class LocalAction final : public IExecutionAction { [[nodiscard]] auto Run(bazel_re::Digest const& action_id) const noexcept -> std::optional; - [[nodiscard]] auto StageFile(std::filesystem::path const& target_path, - Artifact::ObjectInfo const& info) const - -> bool; + [[nodiscard]] auto StageInput( + std::filesystem::path const& target_path, + Artifact::ObjectInfo const& info) const noexcept -> bool; - /// \brief Stage input artifacts to the execution directory. + /// \brief Stage input artifacts and leaf trees to the execution directory. /// Stage artifacts and their parent directory structure from CAS to the /// specified execution directory. The execution directory may no exist. /// \param[in] exec_path Absolute path to the execution directory. /// \returns Success indicator. - [[nodiscard]] auto StageInputFiles( + [[nodiscard]] auto StageInputs( std::filesystem::path const& exec_path) const noexcept -> bool; [[nodiscard]] auto CreateDirectoryStructure( -- cgit v1.2.3