Skip to content

Commit f6cc80c

Browse files
authored
fix: extraneous slash in tar & upload (#21349)
1 parent 2b7e145 commit f6cc80c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/tools/registry/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ async fn perform_publish(
256256
.collect::<Vec<_>>();
257257

258258
let response = client
259-
.post(format!("{}/authorizations", registry_url))
259+
.post(format!("{}authorizations", registry_url))
260260
.json(&serde_json::json!({
261261
"challenge": challenge,
262262
"permissions": permissions,
@@ -285,7 +285,7 @@ async fn perform_publish(
285285
loop {
286286
tokio::time::sleep(interval).await;
287287
let response = client
288-
.post(format!("{}/authorizations/exchange", registry_url))
288+
.post(format!("{}authorizations/exchange", registry_url))
289289
.json(&serde_json::json!({
290290
"exchangeToken": auth.exchange_token,
291291
"verifier": verifier,
@@ -372,7 +372,7 @@ async fn perform_publish(
372372
);
373373

374374
let url = format!(
375-
"{}/scopes/{}/packages/{}/versions/{}",
375+
"{}scopes/{}/packages/{}/versions/{}",
376376
registry_url, package.scope, package.package, package.version
377377
);
378378

@@ -397,7 +397,7 @@ async fn perform_publish(
397397
while task.status != "success" && task.status != "failure" {
398398
tokio::time::sleep(interval).await;
399399
let resp = client
400-
.get(format!("{}/publish_status/{}", registry_url, task.id))
400+
.get(format!("{}publish_status/{}", registry_url, task.id))
401401
.send()
402402
.await
403403
.with_context(|| {

0 commit comments

Comments
 (0)