pub(crate) fn resolve_repo_path( repo_root: &Path, value: &str, must_exist: bool, ) -> Result<PathBuf, String>