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

[Merged by Bors] - feat: cleanup after publishing packages #3259

Conversation

EstebanBorai
Copy link
Contributor

Removes .hub directory after publishing packages
to the Hub when using both cdk or smdk.

crates/cdk/src/publish.rs Outdated Show resolved Hide resolved
@EstebanBorai
Copy link
Contributor Author

@sehz I'm starting to find many similar aspects in both CLIs, starting to think about a common set of functions we could put together and reuse for both. Of course in future iterations!

@EstebanBorai EstebanBorai requested a review from sehz May 15, 2023 20:24
Comment on lines +105 to +107
if !self.pack {
self.cleanup(&package_info)?;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Instead of calling separately, we skip running the cleanup if the --pack argument is not present.
This way we always cleanup unless specified.

Copy link
Contributor

@digikata digikata left a comment

Choose a reason for hiding this comment

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

LGTM

@EstebanBorai
Copy link
Contributor Author

bors r+

bors bot pushed a commit that referenced this pull request May 15, 2023
Removes `.hub` directory after publishing packages
to the Hub when using both **cdk** or **smdk**.
@bors
Copy link

bors bot commented May 15, 2023

Build failed:

@EstebanBorai
Copy link
Contributor Author

bors retry

bors bot pushed a commit that referenced this pull request May 15, 2023
Removes `.hub` directory after publishing packages
to the Hub when using both **cdk** or **smdk**.
@bors
Copy link

bors bot commented May 15, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat: cleanup after publishing packages [Merged by Bors] - feat: cleanup after publishing packages May 15, 2023
@bors bors bot closed this May 15, 2023
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.

3 participants