New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(unstable): tar up directory with deno.json #21228
Conversation
cli/tools/registry/mod.rs
Outdated
packages: Vec<PreparedPublishPackage>, | ||
auth_method: AuthMethod, | ||
) -> Result<(), AnyError> { | ||
let client = reqwest::Client::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the http client in the factory? It would be nice to get progress bars for everything it does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to make HttpClient::client
method public to the crate to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future, we should make it private again and then improve the API of HttpClient
to handle all these scenarios and show progress.
packages.push(prepare_publish(&initial_cwd, directory_path).await?); | ||
} else { | ||
println!("Publishing a workspace..."); | ||
for member in members { | ||
let member_dir = directory_path.join(member); | ||
packages.push(prepare_publish(&initial_cwd, member_dir).await?); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe there's any need to provide the initial_cwd
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: David Sherret <dsherret@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> Co-authored-by: Luca Casonato <hello@lcas.dev> (cherry picked from commit 585cf2d)
Co-authored-by: David Sherret <dsherret@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> Co-authored-by: Luca Casonato <hello@lcas.dev>
No description provided.