Skip to content

cmd/update: attempt migration from master to main branch. #20073

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
Jun 11, 2025

Conversation

MikeMcQuaid
Copy link
Member

@MikeMcQuaid MikeMcQuaid commented Jun 10, 2025

This should allow any repositories that change from master to main to be automatically migrated by brew update without requiring manual intervention or displaying errors to the user.

Tested locally and seems to be playing nicely with https://github.com/MikeMcQuaid/homebrew-main-test. Renaming master to main there transparently updates and errored previously.

Take 2 of #19196
Part of #17296

Needed to migrate any official taps or this repository.

CC @Homebrew/maintainers would appreciate some heavy review here just because of how 💀 mistakes with auto-updating are. Recommending reviewing with no whitespace changes visible (https://github.com/Homebrew/brew/pull/20073/files?w=1)

Copy link
Member

@Rylan12 Rylan12 left a comment

Choose a reason for hiding this comment

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

Thanks for the clarification! This makes sense to me. I just have one remaining comment

This should allow any repositories that change from `master` to `main`
to be automatically migrated by `brew update` without requiring manual
intervention or displaying errors to the user.
@MikeMcQuaid MikeMcQuaid force-pushed the attempt_master_to_main_migration branch from d92b23d to 837b28b Compare June 11, 2025 07:38
@MikeMcQuaid MikeMcQuaid enabled auto-merge June 11, 2025 07:39
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Jun 11, 2025
Merged via the queue into master with commit 8aeb93e Jun 11, 2025
33 checks passed
@MikeMcQuaid MikeMcQuaid deleted the attempt_master_to_main_migration branch June 11, 2025 08:01
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