pub fn resolve_github_source(
client: &Client,
repo: &GitHubRepo,
version: &str,
tag_override: Option<&str>,
use_refs_tags: bool,
) -> Result<ResolvedGitHubSource>Expand description
Try to resolve the correct GitHub archive URL and compute its SHA256.
When tag_override is provided, it is used directly without tag prefix detection.
Otherwise, tries v-prefixed tag first, then bare version.
When use_refs_tags is true, the URL template uses /archive/refs/tags/ instead of
/archive/.