mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-17 16:16:37 +00:00
Ret artifact url in has_release_artifact
So that we can use it to download from private repositories. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
d2914cca42
commit
0708f6f348
4 changed files with 22 additions and 16 deletions
|
@ -29,7 +29,7 @@ pub async fn does_url_exist(
|
|||
|
||||
// The future returned has the same size as a pointer
|
||||
match gh_api_client.has_release_artifact(artifact).await? {
|
||||
HasReleaseArtifact::Yes => return Ok(true),
|
||||
HasReleaseArtifact::Yes { .. } => return Ok(true),
|
||||
HasReleaseArtifact::No | HasReleaseArtifact::NoSuchRelease => return Ok(false),
|
||||
|
||||
HasReleaseArtifact::RateLimit { retry_after } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue