KEMBAR78
Revert "Use installed keg formula files when referencing installed formulae/dependencies" by ZhongRuoyu · Pull Request #20753 · Homebrew/brew · GitHub
Skip to content

Conversation

ZhongRuoyu
Copy link
Member

@ZhongRuoyu ZhongRuoyu commented Sep 22, 2025

There are issues with bottling in homebrew/core. See https://github.com/Homebrew/homebrew-core/actions/runs/17918737406/job/50948240605?pr=245265 for example.

Reverts #20603

sig { returns(Formula) }
def latest_formula
installed_alias_target_changed? ? T.must(current_installed_alias_target) : Formulary.factory(name)
installed_alias_target_changed? ? T.must(current_installed_alias_target) : self
Copy link
Member

Choose a reason for hiding this comment

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

This may be the relevant T.must. I'd advise trying to remove the T.must in these cases in favour of adjusting the code to handle a nil instead.

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Sep 22, 2025
Merged via the queue into main with commit 21c60eb Sep 22, 2025
45 checks passed
@MikeMcQuaid MikeMcQuaid deleted the revert-20603-install-uninstall-formulae-internal-api branch September 22, 2025 16:19
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