Skip to content

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Dec 21, 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?

May have been needed when Homebrew/bundle was separate repo but should just share the same code as rest of brew now.

Copilot AI review requested due to automatic review settings December 21, 2025 20:33
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 replaces a custom pluralize_dependency helper method in the Bundle DSL with the existing Utils.pluralize utility method, reducing code duplication and aligning with Homebrew's standard utilities.

  • Removes the custom pluralize_dependency method from Bundle::Dsl
  • Updates Bundle::Installer to use Utils.pluralize instead
  • Removes associated tests for the deprecated method

Reviewed changes

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

File Description
Library/Homebrew/bundle/dsl.rb Removes the custom pluralize_dependency method that is being replaced with Utils.pluralize
Library/Homebrew/bundle/installer.rb Updates two usages of Homebrew::Bundle::Dsl.pluralize_dependency to use Utils.pluralize with appropriate parameters
Library/Homebrew/test/bundle/dsl_spec.rb Removes tests for the deprecated pluralize_dependency method (functionality is already tested in test/utils_spec.rb)

💡 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 22, 2025
Merged via the queue into main with commit 33b8278 Dec 22, 2025
43 checks passed
@MikeMcQuaid MikeMcQuaid deleted the remove-bundle-pluralize_dependency branch December 22, 2025 10:11
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