In the commit 5eee55e
the function .to_gran_url was added which adds the code:
stopifnot(grepl(dest_base(repo), path, fixed = TRUE))
In buildBadge, if (is.na(status) || status == "NA"), log/path = "" so this will always hit the stop case and can prevent useful subsequent functionality in makeRepo like saveRepo. Could a more lenient response than stopping be taken in general?