Skip to content

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Dec 9, 2025

  • 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?

The JSON API provides an easy alternative for any users who still haven't migrated.


This removes remaining Linuxbrew migration handling (other than diagnostic message) following:

The JSON API provides an easy alternative for any users who still
haven't migrated.
Copilot AI review requested due to automatic review settings December 9, 2025 06:09
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

This PR removes the automatic git repository migration from linuxbrew-core to homebrew-core. With the JSON API now providing an easy alternative for users who haven't migrated, the automatic migration code is no longer necessary. Users still using linuxbrew-core should either use the JSON API (by ensuring HOMEBREW_NO_INSTALL_FROM_API is not set) or manually update their repository remote.

Key changes:

  • Removed automatic migration detection and execution logic
  • Updated diagnostic message to guide users toward manual migration or JSON API usage
  • Cleaned up environment variable documentation

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
Library/Homebrew/extend/os/linux/diagnostic.rb Updated error message to direct users to either unset HOMEBREW_NO_INSTALL_FROM_API or manually update the repository remote
Library/Homebrew/cmd/update.sh Removed migration logic that was triggered by HOMEBREW_LINUXBREW_CORE_MIGRATION and updated environment variable documentation
Library/Homebrew/cmd/update-report.rb Removed code that automatically re-ran brew update for linuxbrew-core migration
Library/Homebrew/brew.sh Removed detection code that set HOMEBREW_LINUXBREW_CORE_MIGRATION when a linuxbrew-core repository was detected

💡 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.

Thanks again!

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 9, 2025
Merged via the queue into main with commit 1882ec6 Dec 9, 2025
43 checks passed
@MikeMcQuaid MikeMcQuaid deleted the remove-linuxbrew-migration branch December 9, 2025 10:16
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