Skip to content

Fix tap migrations without full scope#20932

Merged
MikeMcQuaid merged 1 commit intomainfrom
tap_migrations_fixes
Oct 24, 2025
Merged

Fix tap migrations without full scope#20932
MikeMcQuaid merged 1 commit intomainfrom
tap_migrations_fixes

Conversation

@MikeMcQuaid
Copy link
Copy Markdown
Member

We no longer require user/repo/tap format in tap migrations and allow them to point to themselves when moving from a formula to a cask.

We no longer require `user/repo/tap` format in tap migrations and allow
them to point to themselves when moving from a formula to a cask.
Copilot AI review requested due to automatic review settings October 24, 2025 07:39
Copy link
Copy Markdown
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

This PR fixes tap migration handling to support migrations without full user/repo/tap scope format and allows self-referential migrations when moving from a formula to a cask.

Key changes:

  • Replaced the fallback logic || [Tap.fetch(new_tap_name), name] with explicit conditional handling
  • Added support for tap migrations that specify only a name (without /) to reference items in the same tap
  • Removed the warning message for self-referential migrations and changed the condition to only process when source and target differ

Reviewed Changes

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

File Description
Library/Homebrew/formulary.rb Updated tap migration logic to handle migrations without full scope and allow self-references for formula migrations
Library/Homebrew/cask/cask_loader.rb Updated tap migration logic to handle migrations without full scope and allow self-references for cask migrations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Oct 24, 2025
Merged via the queue into main with commit 60800cc Oct 24, 2025
37 checks passed
@MikeMcQuaid MikeMcQuaid deleted the tap_migrations_fixes branch October 24, 2025 09:18
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