diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-11-21 14:20:24 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-12-13 15:22:54 +0100 |
commit | d8d7ad69387bd59cf5369f2406d53a8c6a1438ef (patch) | |
tree | e7cf5ddf8f9ebe1b77812d814bcf7004304b7a2d /src/buildtool/execution_api/local/local_action.hpp | |
parent | 7e28a2027dd22d12d0a4a2a913d0df78f548ec97 (diff) | |
download | justbuild-d8d7ad69387bd59cf5369f2406d53a8c6a1438ef.tar.gz |
LocalAction: Fix staging of empty trees
(cherry picked from bab0d949d51fe4f10c8d492083427d514206cb63)
Diffstat (limited to 'src/buildtool/execution_api/local/local_action.hpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_action.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<Output>; - [[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( |