From 21957eabce87cc1f52a7fdecd5930970d01883f2 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 25 Mar 2025 10:33:24 +0100 Subject: interfaces: extend signatures to be aware of tree overlays In order to stay backwards compatible, the "tree_overlays" entry in action-graph descriptions is optional. --- src/buildtool/graph_traverser/graph_traverser.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/buildtool/graph_traverser/graph_traverser.hpp') diff --git a/src/buildtool/graph_traverser/graph_traverser.hpp b/src/buildtool/graph_traverser/graph_traverser.hpp index 0958a507..a0214e69 100644 --- a/src/buildtool/graph_traverser/graph_traverser.hpp +++ b/src/buildtool/graph_traverser/graph_traverser.hpp @@ -35,6 +35,7 @@ #include "src/buildtool/common/cli.hpp" #include "src/buildtool/common/identifier.hpp" #include "src/buildtool/common/tree.hpp" +#include "src/buildtool/common/tree_overlay.hpp" #include "src/buildtool/execution_engine/dag/dag.hpp" #include "src/buildtool/execution_engine/executor/context.hpp" #include "src/buildtool/logging/logger.hpp" @@ -81,6 +82,7 @@ class GraphTraverser { std::vector&& action_descriptions, std::vector&& blobs, std::vector&& trees, + std::vector&& tree_overlays, std::vector&& extra_artifacts = {}) const -> std::optional; @@ -104,9 +106,10 @@ class GraphTraverser { /// and the actions as a json object. [[nodiscard]] static auto ReadGraphDescription( std::filesystem::path const& graph_description, - Logger const* logger) - -> std::optional< - std::tuple>; + Logger const* logger) -> std::optional>; /// \brief Requires for the executor to upload blobs to CAS. In the case any /// of the uploads fails, execution is terminated @@ -156,6 +159,7 @@ class GraphTraverser { std::map const& runfiles, std::vector&& actions, std::vector&& trees, + std::vector&& tree_overlays, std::vector&& blobs, std::vector const& extra_artifacts = {}) const -> std::optional< -- cgit v1.2.3