pub fn resolve_release(cache_dir: &Path) -> Result<String>Expand description
Resolves the tag releases/latest points at by reading its redirect
(…/releases/tag/<tag>), so no API and no auth are needed. The tag is
cached in <cache_dir>/tzbb-release.tag so offline regeneration keeps
it, and UTZ_TZBB_RELEASE pins a tag explicitly (skipping the probe).
With no network and no cached tag, the function falls back to "dev"
with a warning; the per-release zip cache (tzbb/<release>/) will
then be empty, so a first-ever offline run fails at download rather
than serving mislabeled bytes.
§Errors
Returns an error only for an I/O failure while caching the freshly
probed tag (probe failures themselves fall back to the cached tag or
"dev").