Skip to content

Optionally use DownloadQueue for reinstall, upgrade. #20296

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
merged 1 commit into from
Jul 24, 2025

Conversation

MikeMcQuaid
Copy link
Member

Follow up on DownloadQueue for download concurrency on brew fetch and brew install to also add support for brew reinstall and brew upgrade.

This required a fair bit of refactoring to make this work so I've also made install.rb, reinstall.rb and upgrade.rb typed: strict to add some extra guardrails from Sorbet here.

Because quite a lot of code needed reindented: I strongly recommend reviewing this without whitespace changes.

Apologies for the large diff.

@MikeMcQuaid MikeMcQuaid enabled auto-merge July 23, 2025 15:26
@MikeMcQuaid MikeMcQuaid requested a review from Bo98 July 24, 2025 08:08
@MikeMcQuaid MikeMcQuaid force-pushed the upgrade_reinstall_download_queue branch from 8dcebbe to 5a5b66a Compare July 24, 2025 08:14
@MikeMcQuaid MikeMcQuaid requested a review from carlocab July 24, 2025 08:16
@MikeMcQuaid MikeMcQuaid force-pushed the upgrade_reinstall_download_queue branch 2 times, most recently from 9b2bb09 to 88af9cd Compare July 24, 2025 08:42
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Can't say I follow all of it, but seems reasonable!

Follow up on `DownloadQueue` for download concurrency on `brew fetch`
and `brew install` to also add support for `brew reinstall` and
`brew upgrade`.

This required a fair bit of refactoring to make this work so I've also
made `install.rb`, `reinstall.rb` and `upgrade.rb` `typed: strict` to
add some extra guardrails from Sorbet here.

Co-authored-by: Carlo Cabrera <github@carlo.cab>
@MikeMcQuaid MikeMcQuaid force-pushed the upgrade_reinstall_download_queue branch from 0c3f5dd to e10d4c4 Compare July 24, 2025 14:41
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Jul 24, 2025
Merged via the queue into main with commit 097e2a3 Jul 24, 2025
34 checks passed
@MikeMcQuaid MikeMcQuaid deleted the upgrade_reinstall_download_queue branch July 24, 2025 15:22
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