-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
bottle: Skip matches to files in build deps #5366
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
Conversation
MikeMcQuaid
left a comment
There was a problem hiding this 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 👍
Library/Homebrew/dev-cmd/bottle.rb
Outdated
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
Library/Homebrew/dev-cmd/bottle.rb
Outdated
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Library/Homebrew/dev-cmd/bottle.rb
Outdated
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
2c21d35 to
47d43d8
Compare
Thanks, Mike! |
Library/Homebrew/dev-cmd/bottle.rb
Outdated
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
Library/Homebrew/dev-cmd/bottle.rb
Outdated
There was a problem hiding this comment.
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.
|
@MikeMcQuaid Good to merge? |
|
Merged. Thanks for the review, Mike! |
Files in build dependencies are not required at run time.
brew stylewith your changes locally?brew testswith your changes locally?This PR addresses the issue that
topgradeis detected as being non-relocatable on macOS, when it ought to becellar :any_skip_relocation.For details see #5365 (comment)
cc @iMichka