From 24cc2e9fbd536ebc87ee56a2fa01096368e143ce Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Mon, 2 Jun 2025 11:11:39 +0200 Subject: just-mr: Warn for non-content-fixed repo reached from absent main If the main repository is marked absent, warn if during the dependency closure computation any non-content-fixed repositories are reached, i.e., any "file"-type repositories that are neither implicitly nor explicitly marked "to_git". Also warn if the main repository itself is marked absent but is not content fixed. Add small test checking that the new warning is produced. --- src/other_tools/just_mr/setup_utils.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/other_tools/just_mr/setup_utils.hpp') diff --git a/src/other_tools/just_mr/setup_utils.hpp b/src/other_tools/just_mr/setup_utils.hpp index 6b0d8731..7dc482e6 100644 --- a/src/other_tools/just_mr/setup_utils.hpp +++ b/src/other_tools/just_mr/setup_utils.hpp @@ -63,6 +63,8 @@ struct SetupRepos { namespace Utils { /// \brief Get the repo dependency closure for a given main repository. +/// If main repository is absent, emits a warning for any reachable +/// non-content-fixed repository found. /// \param repos ExpressionPtr of Map type. void ReachableRepositories( ExpressionPtr const& repos, -- cgit v1.2.3