mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 00:29:09 -05:00
fix: extraneous slash in tar & upload (#21349)
This commit is contained in:
parent
2b7e145e56
commit
f6cc80cddc
1 changed files with 4 additions and 4 deletions
|
@ -256,7 +256,7 @@ async fn perform_publish(
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
let response = client
|
let response = client
|
||||||
.post(format!("{}/authorizations", registry_url))
|
.post(format!("{}authorizations", registry_url))
|
||||||
.json(&serde_json::json!({
|
.json(&serde_json::json!({
|
||||||
"challenge": challenge,
|
"challenge": challenge,
|
||||||
"permissions": permissions,
|
"permissions": permissions,
|
||||||
|
@ -285,7 +285,7 @@ async fn perform_publish(
|
||||||
loop {
|
loop {
|
||||||
tokio::time::sleep(interval).await;
|
tokio::time::sleep(interval).await;
|
||||||
let response = client
|
let response = client
|
||||||
.post(format!("{}/authorizations/exchange", registry_url))
|
.post(format!("{}authorizations/exchange", registry_url))
|
||||||
.json(&serde_json::json!({
|
.json(&serde_json::json!({
|
||||||
"exchangeToken": auth.exchange_token,
|
"exchangeToken": auth.exchange_token,
|
||||||
"verifier": verifier,
|
"verifier": verifier,
|
||||||
|
@ -372,7 +372,7 @@ async fn perform_publish(
|
||||||
);
|
);
|
||||||
|
|
||||||
let url = format!(
|
let url = format!(
|
||||||
"{}/scopes/{}/packages/{}/versions/{}",
|
"{}scopes/{}/packages/{}/versions/{}",
|
||||||
registry_url, package.scope, package.package, package.version
|
registry_url, package.scope, package.package, package.version
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -397,7 +397,7 @@ async fn perform_publish(
|
||||||
while task.status != "success" && task.status != "failure" {
|
while task.status != "success" && task.status != "failure" {
|
||||||
tokio::time::sleep(interval).await;
|
tokio::time::sleep(interval).await;
|
||||||
let resp = client
|
let resp = client
|
||||||
.get(format!("{}/publish_status/{}", registry_url, task.id))
|
.get(format!("{}publish_status/{}", registry_url, task.id))
|
||||||
.send()
|
.send()
|
||||||
.await
|
.await
|
||||||
.with_context(|| {
|
.with_context(|| {
|
||||||
|
|
Loading…
Reference in a new issue