Skip to content

Commit 53a4caf

Browse files
committed
update url field if the package is fetched from direct url
1 parent f037d2f commit 53a4caf

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

crates/soar-cli/src/update.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,12 @@ fn check_local_package_update(
381381
return Ok(None);
382382
}
383383

384-
(v, result.download_url, result.size, None)
384+
let toml_url = if is_github_or_gitlab {
385+
None
386+
} else {
387+
Some(result.download_url.clone())
388+
};
389+
(v, result.download_url, result.size, toml_url)
385390
} else {
386391
let update_source = derive_update_source(resolved).unwrap();
387392
let update = match check_for_update(&update_source, &pkg.version) {

0 commit comments

Comments
 (0)