From e3d36d2c7bb91b1f5a043cefca3f4a6a5a5c9540 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 11 Jan 2024 13:03:33 +0100 Subject: fpath_git_map: Sync pragma 'to_git' root trees with serve endpoint Marking a file-type repository as 'to_git' results in a Git-tree type root, which are of course content fixed and can be (and usually are) used by export targets. Therefore, it is beneficial for a serve endpoint, if one is provided, to be aware of such a root and be able to build against it if needed. If the root is marked as absent, this condition becomes mandatory. Generating an absent Git-tree root without being provided a serve endpoint is still allowed, but results in a warning. --- src/other_tools/root_maps/fpath_git_map.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/other_tools/root_maps/fpath_git_map.hpp') diff --git a/src/other_tools/root_maps/fpath_git_map.hpp b/src/other_tools/root_maps/fpath_git_map.hpp index 4dbe204f..e6cd45f9 100644 --- a/src/other_tools/root_maps/fpath_git_map.hpp +++ b/src/other_tools/root_maps/fpath_git_map.hpp @@ -21,6 +21,7 @@ #include "gsl/gsl" #include "nlohmann/json.hpp" +#include "src/buildtool/execution_api/common/execution_api.hpp" #include "src/buildtool/file_system/symlinks_map/pragma_special.hpp" #include "src/buildtool/file_system/symlinks_map/resolve_symlinks_map.hpp" #include "src/other_tools/just_mr/utils.hpp" @@ -51,6 +52,8 @@ using FilePathGitMap = AsyncMapConsumer; gsl::not_null const& critical_git_op_map, gsl::not_null const& import_to_git_map, gsl::not_null const& resolve_symlinks_map, + bool serve_api_exists, + std::optional> const& remote_api, std::size_t jobs, std::string multi_repo_tool_name, std::string build_tool_name) -> FilePathGitMap; -- cgit v1.2.3