Skip to content

Conversation

carlocab
Copy link
Member

@carlocab carlocab commented Aug 1, 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 style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

This is needed to avoid Sorbet runtime errors. See #20352.

@carlocab carlocab requested a review from Bo98 August 1, 2025 18:42
@carlocab carlocab force-pushed the require-formula-ensure-formula-installed branch from 31cbc10 to 1a89dc9 Compare August 1, 2025 18:44
This is needed to avoid Sorbet runtime errors. See #20352.
@carlocab carlocab force-pushed the require-formula-ensure-formula-installed branch from 1a89dc9 to cc5df09 Compare August 1, 2025 18:46
There is no `rubocop` formula, so this method cannot possibly be used
without erroring out.
@Bo98
Copy link
Member

Bo98 commented Aug 1, 2025

This does make me think however that maybe we should just move this to be Formula[name].ensure_installed! at some point.

Base automatically changed from more-extend-kernel-sigs to main August 1, 2025 19:08
@carlocab
Copy link
Member Author

carlocab commented Aug 1, 2025

This does make me think however that maybe we should just move this to be Formula[name].ensure_installed! at some point.

Yea, that seems better. Probably worth a deprecation cycle, though.

@carlocab carlocab enabled auto-merge August 1, 2025 19:14
@carlocab carlocab added this pull request to the merge queue Aug 1, 2025
carlocab added a commit that referenced this pull request Aug 1, 2025
`ensure_formula_installed!` requires the `Formula` class to be loaded
before being called to work properly.

Let's guarantee that instead by implementing it as an instance method of
the `Formula` class.

See discussion at #20358.
Merged via the queue into main with commit 9dc1112 Aug 1, 2025
36 checks passed
@carlocab carlocab deleted the require-formula-ensure-formula-installed branch August 1, 2025 19:40
carlocab added a commit that referenced this pull request Aug 1, 2025
`ensure_formula_installed!` requires the `Formula` class to be loaded
before being called to work properly.

Let's guarantee that instead by implementing it as an instance method of
the `Formula` class.

See discussion at #20358.
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.

2 participants