From 4fc124f21ea664b968ab6ee320c6ecb030292c08 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 2 Sep 2024 18:12:23 +0200 Subject: Use ArtifactDigest in LocalAction --- src/buildtool/execution_api/local/local_action.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 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 dedc2951..d6ab0e58 100644 --- a/src/buildtool/execution_api/local/local_action.hpp +++ b/src/buildtool/execution_api/local/local_action.hpp @@ -117,7 +117,7 @@ class LocalAction final : public IExecutionAction { return BazelMsgFactory::CreateActionDigestFromCommandLine(request); } - [[nodiscard]] auto Run(bazel_re::Digest const& action_id) const noexcept + [[nodiscard]] auto Run(ArtifactDigest const& action_id) const noexcept -> std::optional; [[nodiscard]] auto StageInput( @@ -154,7 +154,7 @@ class LocalAction final : public IExecutionAction { /// \brief Store file from path in file CAS and return pointer to digest. [[nodiscard]] auto DigestFromOwnedFile( std::filesystem::path const& file_path) const noexcept - -> gsl::owner; + -> std::optional; }; #endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_LOCAL_LOCAL_ACTION_HPP -- cgit v1.2.3