From f6cc80cddc73e833e9adcf89b4da56493e36ec37 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 27 Nov 2023 18:09:33 +0100 Subject: [PATCH] fix: extraneous slash in tar & upload (#21349) --- cli/tools/registry/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/tools/registry/mod.rs b/cli/tools/registry/mod.rs index aff3b5e10a..9f2e366105 100644 --- a/cli/tools/registry/mod.rs +++ b/cli/tools/registry/mod.rs @@ -256,7 +256,7 @@ async fn perform_publish( .collect::>(); let response = client - .post(format!("{}/authorizations", registry_url)) + .post(format!("{}authorizations", registry_url)) .json(&serde_json::json!({ "challenge": challenge, "permissions": permissions, @@ -285,7 +285,7 @@ async fn perform_publish( loop { tokio::time::sleep(interval).await; let response = client - .post(format!("{}/authorizations/exchange", registry_url)) + .post(format!("{}authorizations/exchange", registry_url)) .json(&serde_json::json!({ "exchangeToken": auth.exchange_token, "verifier": verifier, @@ -372,7 +372,7 @@ async fn perform_publish( ); let url = format!( - "{}/scopes/{}/packages/{}/versions/{}", + "{}scopes/{}/packages/{}/versions/{}", registry_url, package.scope, package.package, package.version ); @@ -397,7 +397,7 @@ async fn perform_publish( while task.status != "success" && task.status != "failure" { tokio::time::sleep(interval).await; let resp = client - .get(format!("{}/publish_status/{}", registry_url, task.id)) + .get(format!("{}publish_status/{}", registry_url, task.id)) .send() .await .with_context(|| {