Skip to content
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

Merged
merged 80 commits into from Nov 23, 2023

Conversation

bartlomieju
Copy link
Member

No description provided.

@bartlomieju bartlomieju changed the title [WIP] feat(unstable): tar up directory with deno.json feat(unstable): tar up directory with deno.json Nov 23, 2023
cli/tools/registry/mod.rs Outdated Show resolved Hide resolved
cli/tools/registry/tar.rs Outdated Show resolved Hide resolved
@bartlomieju bartlomieju enabled auto-merge (squash) November 23, 2023 22:44
cli/args/flags.rs Outdated Show resolved Hide resolved
cli/tools/registry/mod.rs Outdated Show resolved Hide resolved
cli/tools/registry/mod.rs Outdated Show resolved Hide resolved
packages: Vec<PreparedPublishPackage>,
auth_method: AuthMethod,
) -> Result<(), AnyError> {
let client = reqwest::Client::new();
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.

cli/tools/registry/mod.rs Outdated Show resolved Hide resolved
cli/tools/registry/mod.rs Outdated Show resolved Hide resolved
cli/tools/registry/tar.rs Outdated Show resolved Hide resolved
Comment on lines +499 to +504
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?);
Copy link
Member

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?

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bartlomieju bartlomieju merged commit 585cf2d into denoland:main Nov 23, 2023
14 checks passed
@bartlomieju bartlomieju deleted the registry_cli branch November 23, 2023 23:45
crowlKats pushed a commit that referenced this pull request Nov 24, 2023
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)
bartlomieju added a commit that referenced this pull request Nov 24, 2023
Co-authored-by: David Sherret <dsherret@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants