Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose uses_from_macos list in formula API #6467

Merged
merged 2 commits into from
Oct 11, 2019

Conversation

EricFromCanada
Copy link
Member

  • 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 tests with your changes locally?

As suggested in #6162.

This also fixes some inverted logic in how before: and after: are handled, as mentioned earlier, i.e. add_mac_dependency? needs to return false (causing the dependency version shipped with macOS to be used) if the current OS version is greater than or equal to the after: value, or less than the before: value.

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.

Implementation looks good but just have some thoughts on naming.

@EricFromCanada EricFromCanada force-pushed the uses_from_macos-json branch 2 times, most recently from c1fbdd8 to 13255ec Compare September 18, 2019 20:04
@EricFromCanada EricFromCanada changed the title Expose uses_from_macos in formula API as "macos_dependencies" Expose uses_from_macos list in formula API Sep 18, 2019
@@ -4,22 +4,28 @@ class SoftwareSpec
undef uses_from_macos

def uses_from_macos(deps, **args)
@macos_deps ||= []
Copy link
Member

@MikeMcQuaid MikeMcQuaid Sep 19, 2019

Choose a reason for hiding this comment

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

Thoughts on just uses_from_macos? I think the use of deps here is a bit misleading because at this stage this aren't actually dependencies.

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.

Sorry, missed the updates here! Give me a shout if you force-push and I don't acknowledge it. Thanks again @EricFromCanada!

@MikeMcQuaid MikeMcQuaid merged commit 0d06834 into Homebrew:master Oct 11, 2019
@EricFromCanada EricFromCanada deleted the uses_from_macos-json branch November 21, 2019 19:25
@lock lock bot added the outdated PR was locked due to age label Jan 1, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants