pub fn warn_if_pagination_truncated(
provider: &str,
ecosystem: &str,
noun: &str,
name: &str,
page: u32,
page_len: usize,
max_pages: u32,
)Expand description
Logs a warning when pagination for name stops at max_pages while provider still had
more pages available (page_has_more(page_len)).
Without this, hitting the safety ceiling on a pathological repo/project is
indistinguishable in logs from “there is genuinely no matching version” — this makes
truncation diagnosable. provider names the upstream API ("GitHub", "GitLab");
ecosystem names the caller ecosystem (e.g. "Swift", "GitHub Actions", "GitLab CI"); noun names what is being paginated ("tags", "releases") in the warning text
— a caller pagintating a non-tags endpoint (e.g. GitLab CI’s /releases) must not have
its warning hardcode “tags” pagination.