From 6687126208fc225ea18018244ff79d1fb6911a5e Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 22 Jan 2024 12:18:47 +0100 Subject: just-mr 'git' repository: Absent roots sync with serve endpoint To take advantage of absent roots, we need to ensure that a given serve endpoint can build against the tree of this generated root. To this end, for a 'git' repository we only set the root as absent if the serve endpoint knows already the root, it can set it up itself, or we can create the root locally without a network fetch and then upload it to the serve endpoint via the remote CAS. A network fetch never gets performed for an absent root. If a serve endpoint is not provided, an absent root can still be generated, but only if no network fetches are required. In this case a warning is emitted. --- src/other_tools/root_maps/commit_git_map.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/other_tools/root_maps/commit_git_map.hpp') diff --git a/src/other_tools/root_maps/commit_git_map.hpp b/src/other_tools/root_maps/commit_git_map.hpp index 949b0dd1..fd1530af 100644 --- a/src/other_tools/root_maps/commit_git_map.hpp +++ b/src/other_tools/root_maps/commit_git_map.hpp @@ -68,7 +68,8 @@ struct hash { /// \brief Maps a Git repository commit hash to its tree workspace root, /// together with the information whether it was a cache hit. using CommitGitMap = - AsyncMapConsumer>; + AsyncMapConsumer>; [[nodiscard]] auto CreateCommitGitMap( gsl::not_null const& critical_git_op_map, -- cgit v1.2.3