Skip to content

Conversation

@sjackman
Copy link
Contributor

@sjackman sjackman commented Dec 2, 2018

Files in build dependencies are not required at run time.

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

This PR addresses the issue that topgrade is detected as being non-relocatable on macOS, when it ought to be cellar :any_skip_relocation.
For details see #5365 (comment)
cc @iMichka

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.

Seems like a good approach, nice work 👍

Copy link
Member

Choose a reason for hiding this comment

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

Could this just check for paths that don't exist? Seems like it might be more specific and therefore more likely to find cellar :any relocations.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

Copy link
Member

Choose a reason for hiding this comment

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

Does this match cases where it's a random path inside a Keg rather than the actual keg?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

Copy link
Member

Choose a reason for hiding this comment

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

Could this be passed through as an argument (to keg_contain?) instead? More obvious to me than relying on a instance variable declared elsewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@sjackman sjackman force-pushed the bottle branch 2 times, most recently from 2c21d35 to 47d43d8 Compare December 2, 2018 19:58
@sjackman
Copy link
Contributor Author

sjackman commented Dec 2, 2018

Seems like a good approach, nice work 👍

Thanks, Mike!

Copy link
Member

Choose a reason for hiding this comment

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

Make runtime_deps = [] by default or use if runtime_deps.present?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't know about .present?. Nice!

Copy link
Member

Choose a reason for hiding this comment

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

formula_and_runtime_deps_names?

Files in build dependencies are not required at run time.
@sjackman
Copy link
Contributor Author

sjackman commented Dec 3, 2018

@MikeMcQuaid Good to merge?

@sjackman
Copy link
Contributor Author

sjackman commented Dec 3, 2018

Merged. Thanks for the review, Mike!

@sjackman sjackman merged commit 704e857 into Homebrew:master Dec 3, 2018
@sjackman sjackman deleted the bottle branch December 3, 2018 16:00
@lock lock bot added the outdated PR was locked due to age label Jan 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jan 2, 2019
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