From 03f948f4b10e916052a2234448b6658b80ee9143 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 1 Aug 2024 10:26:13 +0200 Subject: Execution API: support cwd ... following the remote-execution standard that all output paths (but none of the input paths) are relative to the working directory. Therefore, the executor has to do the path translation. For our implementation of the API interface - the local API now handles cwd correctly, - the remote API forwards cwd correctly, and - the git API continues to report actions as not implemented. --- src/buildtool/execution_api/remote/bazel/bazel_action.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/buildtool/execution_api/remote/bazel/bazel_action.hpp') diff --git a/src/buildtool/execution_api/remote/bazel/bazel_action.hpp b/src/buildtool/execution_api/remote/bazel/bazel_action.hpp index 8316cec1..7bf62a45 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_action.hpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_action.hpp @@ -44,6 +44,7 @@ class BazelAction final : public IExecutionAction { std::shared_ptr const network_; bazel_re::Digest const root_digest_; std::vector const cmdline_; + std::string const cwd_; std::vector output_files_; std::vector output_dirs_; std::vector const env_vars_; @@ -55,6 +56,7 @@ class BazelAction final : public IExecutionAction { std::shared_ptr network, bazel_re::Digest root_digest, std::vector command, + std::string cwd, std::vector output_files, std::vector output_dirs, std::map const& env_vars, -- cgit v1.2.3