Skip to content

cmd/update-report: handle cask-to-formula tap migration with rename#21642

Merged
MikeMcQuaid merged 1 commit intomainfrom
tap-migrate-rename-cask
Feb 28, 2026
Merged

cmd/update-report: handle cask-to-formula tap migration with rename#21642
MikeMcQuaid merged 1 commit intomainfrom
tap-migrate-rename-cask

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Feb 28, 2026

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

Fix a bug in tap migration from homebrew-cask to homebrew-core when combined with a rename.

Previously it skipped installing formula as looking for wrong name of Cask.

Changing name allowed installation to continue, but would fail to link at install time since Cask already owns symlink. Two options here:

  1. change in PR to --overwrite at install time
  2. run install with --skip-link and then let this be handled in existing brew link step.

Not sure if there is a specific reason we were doing latter so just used simpler brew install --overwrite

Copilot AI review requested due to automatic review settings February 28, 2026 17:23
@cho-m cho-m force-pushed the tap-migrate-rename-cask branch from 0f231f7 to 7a5111a Compare February 28, 2026 17:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a bug in brew update-report’s tap-migration handling where a cask migrating from homebrew/cask to a formula in homebrew/core (with a rename) could be skipped or mishandled.

Changes:

  • Adjust cask-migration detection to check the existing (old) Caskroom path rather than the new formula name.
  • Install the migrated formula with --skip-link and then explicitly brew link --overwrite when appropriate.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Looks good! Happy either this either option you mentioned. Thanks!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Feb 28, 2026
Merged via the queue into main with commit 27ae838 Feb 28, 2026
42 checks passed
@MikeMcQuaid MikeMcQuaid deleted the tap-migrate-rename-cask branch February 28, 2026 18: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